diff options
-rw-r--r-- | src/chips/dosbox/dbopl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/chips/dosbox/dbopl.cpp b/src/chips/dosbox/dbopl.cpp index 1931203..5260c37 100644 --- a/src/chips/dosbox/dbopl.cpp +++ b/src/chips/dosbox/dbopl.cpp @@ -72,6 +72,17 @@ #define PI 3.14159265358979323846 #endif +/* + * Workaround for some compilers are has no those macros in their headers! + */ +#ifndef INT16_MIN +#define INT16_MIN (-0x7fff - 1) +#endif +#ifndef INT16_MAX +#define INT16_MAX 0x7fff +#endif + + struct NoCopy { NoCopy() {} private: |