From c32343e883d28bb4a66cb0a039132f2bf1651ee2 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 22 Dec 2006 01:43:41 +0000 Subject: Switch from stdint.h to inttypes.h (which includes stdint.h). Old pre-C99 versions of Solaris only have inttypes.h. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 796 --- src/doomtype.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/doomtype.h b/src/doomtype.h index 2bd67415..4dbed9e6 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -32,7 +32,12 @@ // C99 integer types; with gcc we just use this. Other compilers // should add conditional statements that define the C99 types. -#include +// What is really wanted here is stdint.h; however, some old versions +// of Solaris don't have stdint.h and only have inttypes.h (the +// pre-standardisation version). inttypes.h is also in the C99 +// standard and defined to include stdint.h, so include this. + +#include #ifdef __cplusplus @@ -44,8 +49,8 @@ typedef bool boolean; typedef enum { - false, - true + false, + true } boolean; #endif -- cgit v1.2.3