From 7b47647366123ee9f9e41312d639024680101234 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Thu, 17 May 2018 01:38:53 +0300 Subject: Auto-define missing int types to build on Watcom with C90 --- src/wopl/wopl_file.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3