From 9352de797b9f2bceb77a7dfb0229c01f0ac1cd0d Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 13 Nov 2017 04:52:25 +0300 Subject: Continue attempt to make library and demo player runnable under OpenWatcom Because of broken STL containers, are very hard crashes in random places are can't be fixed with a full customizing of those containers. --- src/adlmidi_private.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp index 408fede..c08658e 100644 --- a/src/adlmidi_private.hpp +++ b/src/adlmidi_private.hpp @@ -70,8 +70,13 @@ typedef __int32 ssize_t; #include #include #include +//#ifdef __WATCOMC__ +//#include //TODO: Implemnet a workaround for OpenWatcom to fix a crash while using those containers +//#include +//#else #include #include +//#endif #include #include #include @@ -171,6 +176,7 @@ private: std::vector dynamic_metainstruments; // Replaces adlins[] when CMF file std::vector dynamic_instruments; // Replaces adl[] when CMF file size_t dynamic_percussion_offset; + typedef std::map BankMap; BankMap dynamic_melodic_banks; BankMap dynamic_percussion_banks; -- cgit v1.2.3