From a1188fd3907278e32e08e90162f8f9e843f8f017 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Thu, 25 May 2023 18:31:54 -0700 Subject: [PATCH] Ifdef'ed out stdint.h for Turbo C and put back old typedefs for zbyte, etc. --- src/common/frotz.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/frotz.h b/src/common/frotz.h index 9abae04..abf9dc2 100644 --- a/src/common/frotz.h +++ b/src/common/frotz.h @@ -69,7 +69,10 @@ typedef int bool; /* For everything */ /******************************************************************************/ #include + +#ifndef __TURBOC__ #include +#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; -- 2.34.1