From 7d4f2d56fad8dd578255779e7c31a42f5fd69217 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 23 Oct 2005 13:33:46 +0000 Subject: [PATCH] Fix GNU C build --- goldlib/gall/gdefs.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/goldlib/gall/gdefs.h b/goldlib/gall/gdefs.h index 15020c5..1e134c7 100644 --- a/goldlib/gall/gdefs.h +++ b/goldlib/gall/gdefs.h @@ -29,8 +29,9 @@ #define __goldall_h // ------------------------------------------------------------------ - +#ifdef __cplusplus #include +#endif #include #ifdef _MSC_VER #include @@ -109,25 +110,25 @@ typedef signed char int8_t; typedef unsigned char uint8_t; #else -#error Don't know how to define 8 bit integers +#error Dont know how to define 8 bit integers #endif #if (USHRT_MAX == 0xFFFF) typedef signed short int16_t; typedef unsigned short uint16_t; #else -#error Don't know how to define 16 bit integers +#error Dont know how to define 16 bit integers #endif #if (UINT_MAX == 0xFFFFFFFF) typedef signed int int32_t; typedef unsigned int uint32_t; #else -#error Don't know how to define 32 bit integers +#error Dont know how to define 32 bit integers #endif +#endif //#ifdef _MSC_VER typedef uint8_t byte; typedef uint16_t word; typedef uint32_t dword; -#endif //#ifdef _MSC_VER typedef unsigned int uint;