aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-05-17 01:38:53 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-05-17 01:38:53 +0300
commit7b47647366123ee9f9e41312d639024680101234 (patch)
treed2eb0a13672a7d79ad876265e2e579c245a2bb14
parentf1bad3e1e3f64f19f3c057263be1a022fb269ca2 (diff)
downloadlibADLMIDI-7b47647366123ee9f9e41312d639024680101234.tar.gz
libADLMIDI-7b47647366123ee9f9e41312d639024680101234.tar.bz2
libADLMIDI-7b47647366123ee9f9e41312d639024680101234.zip
Auto-define missing int types to build on Watcom with C90
-rw-r--r--src/wopl/wopl_file.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wopl/wopl_file.h b/src/wopl/wopl_file.h
index f5d816b..0e38842 100644
--- a/src/wopl/wopl_file.h
+++ b/src/wopl/wopl_file.h
@@ -32,6 +32,14 @@
extern "C" {
#endif
+#if !defined(__STDC_VERSION__) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199901L)) \
+ || defined(__STRICT_ANSI__) || !defined(__cplusplus)
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int int16_t;
+typedef unsigned short int uint16_t;
+#endif
+
/* Global OPL flags */
typedef enum WOPLFileFlags
{