diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-10 21:42:25 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-10 21:42:25 +0300 |
commit | 0da7c26b10d362ffbb7b9d44d7add043f2d7192f (patch) | |
tree | 1aa0b0e3c3bb0f557488bdd8e4d35d74b2d9c736 /src/adlmidi_load.cpp | |
parent | 472cd580a2646d53a86c5bbdce890a3798754200 (diff) | |
download | libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.tar.gz libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.tar.bz2 libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.zip |
Incomplete attempt to provide support for OpenWattcom compiler
Yeah, I see it lacks A LOT OF things: std::vector lacks .data() member, std::map lacks .count() member, there is no any std::stringstream implementations, etc.
SOLUTION: Try to use STLPort to provide missing STL support for this compiler
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r-- | src/adlmidi_load.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index 359536a..afe0610 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -181,7 +181,7 @@ bool MIDIplay::LoadBank(MIDIplay::fileReader &fr) } char magic[32]; - memset(magic, 0, 32); + std::memset(magic, 0, 32); uint16_t version = 0; @@ -194,7 +194,7 @@ bool MIDIplay::LoadBank(MIDIplay::fileReader &fr) return false; } - if(strncmp(magic, wopl3_magic, 11) != 0) + if(std::strncmp(magic, wopl3_magic, 11) != 0) { errorStringOut = "Custom bank: Invalid magic number!"; return false; @@ -215,7 +215,7 @@ bool MIDIplay::LoadBank(MIDIplay::fileReader &fr) } uint8_t head[6]; - memset(head, 0, 6); + std::memset(head, 0, 6); if(fr.read(head, 1, 6) != 6) { errorStringOut = "Custom bank: Can't read header!"; @@ -288,7 +288,7 @@ tryAgain: for(uint16_t i = 0; i < total; i++) { WOPL_Inst ins; - memset(&ins, 0, sizeof(WOPL_Inst)); + std::memset(&ins, 0, sizeof(WOPL_Inst)); if(!readInstrument(fr, ins, readPercussion)) { opl.setEmbeddedBank(m_setup.AdlBank); |