From 07bf460041bcc518483078afb34e83b9a3aeabb6 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Mon, 14 May 2018 03:56:48 +0300 Subject: Fixed DosBox emulator build with the same issue when macros not defined --- src/chips/dosbox/dbopl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/chips/dosbox/dbopl.h') diff --git a/src/chips/dosbox/dbopl.h b/src/chips/dosbox/dbopl.h index 13c606f..62d2e59 100644 --- a/src/chips/dosbox/dbopl.h +++ b/src/chips/dosbox/dbopl.h @@ -65,6 +65,14 @@ typedef int32_t ssize_t; # endif #endif +#ifndef INT16_MIN +#define INT16_MIN (-0x7fff - 1) +#endif + +#ifndef INT16_MAX +#define INT16_MAX 0x7fff +#endif + namespace DBOPL { -- cgit v1.2.3