shithub: choc

Download patch

ref: c32343e883d28bb4a66cb0a039132f2bf1651ee2
parent: 38276bb0fbaa85200ab9fefbc671f310ef4ba08e
author: Simon Howard <[email protected]>
date: Thu Dec 21 20:43:41 EST 2006

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

--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -32,8 +32,13 @@
 // 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
 
 // Use builtin bool type with C++.
@@ -44,8 +49,8 @@
 
 typedef enum 
 {
-	false, 
-	true
+    false, 
+    true
 } boolean;
 
 #endif