Ifdef'ed out stdint.h for Turbo C and put back old typedefs for zbyte, etc.
authorDavid Griffith <dave@661.org>
Fri, 26 May 2023 01:31:54 +0000 (18:31 -0700)
committerDavid Griffith <dave@661.org>
Fri, 26 May 2023 02:50:48 +0000 (19:50 -0700)
src/common/frotz.h

index 9abae04b8fe9c58258a9c6331794f7c26d06db44..abf9dc2d741e890bf3113f98dd31389d373dc680 100644 (file)
@@ -69,7 +69,10 @@ typedef int bool;
 /* For everything */
 /******************************************************************************/
 #include <stdio.h>
+
+#ifndef __TURBOC__
 #include <stdint.h>
+#endif
 
 #include "defs.h"
 #include "hash.h"
@@ -102,9 +105,15 @@ typedef int bool;
 #define PATH_SEPARATOR '/'
 #endif
 
+#ifdef __TURBOC__
+typedef unsigned char zbyte;
+typedef unsigned short zword;
+typedef unsigned long zlong;
+#else
 typedef uint8_t zbyte;
 typedef uint16_t zword;
 typedef uint32_t zlong;
+#endif
 
 #ifndef USE_UTF8
 typedef unsigned char zchar;