diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-12 07:32:11 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-12 07:32:11 +0300 |
commit | b043032a89f38e2b3191a65dab9ae4e8202d48f3 (patch) | |
tree | fa43cf8e88087b84aff825e8eaac40ff4587f2c3 /utils/dumpmiles | |
parent | cc2d7237cce71482c04895e5550609534e41413b (diff) | |
download | libADLMIDI-b043032a89f38e2b3191a65dab9ae4e8202d48f3.tar.gz libADLMIDI-b043032a89f38e2b3191a65dab9ae4e8202d48f3.tar.bz2 libADLMIDI-b043032a89f38e2b3191a65dab9ae4e8202d48f3.zip |
libADLMIDI now is buildable under OpenWatcom except of some workarounds
- Need a different way to create a static library, otherwise it don't wanna be built.
- Needed a different custom STL containers (std::vector and std::set) implementation that will work and will don't glitch with a crashes
Diffstat (limited to 'utils/dumpmiles')
-rw-r--r-- | utils/dumpmiles/dumpmiles.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/dumpmiles/dumpmiles.cpp b/utils/dumpmiles/dumpmiles.cpp index e946c5d..0c2d51b 100644 --- a/utils/dumpmiles/dumpmiles.cpp +++ b/utils/dumpmiles/dumpmiles.cpp @@ -3,10 +3,11 @@ //#endif #include <cstdio> #include <vector> +#include <stdio.h> static void LoadMiles(const char* fn) { - FILE* fp = fopen(fn, "rb"); + FILE* fp = std::fopen(fn, "rb"); if(!fp) { std::fprintf(stderr, "ERROR: Can't open %s file!", fn); @@ -39,7 +40,7 @@ static void LoadMiles(const char* fn) std::printf("%02X %02X ", gmnumber,gmnumber2); //, offset); for(unsigned b=0; b<length; ++b) { - if(b > 3 && (b-3)%11 == 0) printf("\n "); + if(b > 3 && (b-3)%11 == 0) std::printf("\n "); std::printf("%02X ", data[offset+b]); } std::printf("\n"); |