summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-12-22 01:43:41 +0000
committerSimon Howard2006-12-22 01:43:41 +0000
commitc32343e883d28bb4a66cb0a039132f2bf1651ee2 (patch)
treebd9d71bdc074cbfce627749acbdce0bad4713e9e
parent38276bb0fbaa85200ab9fefbc671f310ef4ba08e (diff)
downloadchocolate-doom-c32343e883d28bb4a66cb0a039132f2bf1651ee2.tar.gz
chocolate-doom-c32343e883d28bb4a66cb0a039132f2bf1651ee2.tar.bz2
chocolate-doom-c32343e883d28bb4a66cb0a039132f2bf1651ee2.zip
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
-rw-r--r--src/doomtype.h11
1 files 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 <stdint.h>
+// 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 <inttypes.h>
#ifdef __cplusplus
@@ -44,8 +49,8 @@ typedef bool boolean;
typedef enum
{
- false,
- true
+ false,
+ true
} boolean;
#endif