commit c32343e883d28bb4a66cb0a039132f2bf1651ee2
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Dec 22 01:43:41 2006 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Fri Dec 22 01:43:41 2006 +0000
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 <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