summaryrefslogtreecommitdiff
path: root/src/h-type.h
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-02-14 15:58:50 +0100
committerBardur Arantsson <bardur@scientician.net>2010-02-14 16:00:22 +0100
commit9c5efc505884b7b03c7bbc14367d788487e97c8d (patch)
tree787f5100478b7de152d465141a96f3c8996a50cc /src/h-type.h
parent8456ddac1f7770283ba040eb612347f5108a590f (diff)
Revert use of stdint.h since not all compilers we're supporting have it.
This reverts commit d324d9c0ac98e74db26e5dd5c6e379c1fc18cff3.
Diffstat (limited to 'src/h-type.h')
-rw-r--r--src/h-type.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/h-type.h b/src/h-type.h
index 2582f325..eb865892 100644
--- a/src/h-type.h
+++ b/src/h-type.h
@@ -3,8 +3,6 @@
#ifndef INCLUDED_H_TYPE_H
#define INCLUDED_H_TYPE_H
-#include <stdint.h>
-
/*
* Basic "types".
*
@@ -120,8 +118,13 @@ typedef signed short s16b;
typedef unsigned short u16b;
/* Signed/Unsigned 32 bit value */
-typedef int32_t s32b;
-typedef uint32_t u32b;
+#ifdef L64 /* 64 bit longs */
+typedef signed int s32b;
+typedef unsigned int u32b;
+#else
+typedef signed long s32b;
+typedef unsigned long u32b;
+#endif
/*** Pointers to all the basic types defined above ***/