diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-14 03:56:48 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-14 03:56:48 +0300 |
commit | 07bf460041bcc518483078afb34e83b9a3aeabb6 (patch) | |
tree | ad1cfdad4ea19d703aa2e927dd3c0f0b1d8e78d1 /src/chips/dosbox/dbopl.h | |
parent | 372f2c17e15e846def959f34f67c61f679ee7bc4 (diff) | |
download | libADLMIDI-07bf460041bcc518483078afb34e83b9a3aeabb6.tar.gz libADLMIDI-07bf460041bcc518483078afb34e83b9a3aeabb6.tar.bz2 libADLMIDI-07bf460041bcc518483078afb34e83b9a3aeabb6.zip |
Fixed DosBox emulator build with the same issue when macros not defined
Diffstat (limited to 'src/chips/dosbox/dbopl.h')
-rw-r--r-- | src/chips/dosbox/dbopl.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |