summaryrefslogtreecommitdiff
path: root/src/doomtype.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/doomtype.h')
-rw-r--r--src/doomtype.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/doomtype.h b/src/doomtype.h
index b330eb9a..2bd67415 100644
--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -29,20 +29,30 @@
#ifndef __DOOMTYPE__
#define __DOOMTYPE__
+// C99 integer types; with gcc we just use this. Other compilers
+// should add conditional statements that define the C99 types.
+
+#include <stdint.h>
-#ifndef __BYTEBOOL__
-#define __BYTEBOOL__
-// Fixed to use builtin bool type with C++.
#ifdef __cplusplus
+
+// Use builtin bool type with C++.
+
typedef bool boolean;
+
#else
-typedef enum {false, true} boolean;
-#endif
-typedef unsigned char byte;
+
+typedef enum
+{
+ false,
+ true
+} boolean;
+
#endif
+typedef uint8_t byte;
#include <limits.h>
-
#endif
+