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/adlmidi_midiplay.cpp | 1 + src/chips/dosbox/dbopl.h | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'src') diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 6bc2366..69c1808 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -2797,6 +2797,7 @@ void MIDIplay::AdlChannel::users_clear() void MIDIplay::AdlChannel::users_assign(const LocationData *users, size_t count) { + ADL_UNUSED(count);//Avoid warning for release builds assert(count <= users_max); if(users == users_first && users) { // self assignment 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