aboutsummaryrefslogtreecommitdiff
path: root/d_size.h
diff options
context:
space:
mode:
authorJeremy Henty <onepoint@starurchin.org>2011-01-08 17:56:56 +0000
committerJeremy Henty <onepoint@starurchin.org>2011-01-08 17:56:56 +0000
commit25a421b0e88ad9dda4a2e0434afd983799fdf2ad (patch)
tree12fe02a6e002fecf7b2b8e14a7f7755d1f0b2b54 /d_size.h
parent86c91dc8191c9b0266eaa86a8fa416627f9da207 (diff)
configure.in: define the {int,uint}*_t types with AC_TYPE_*.
* * * drop d_size
Diffstat (limited to 'd_size.h')
-rw-r--r--d_size.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/d_size.h b/d_size.h
new file mode 100644
index 00000000..2e2019e7
--- /dev/null
+++ b/d_size.h
@@ -0,0 +1,24 @@
+#ifndef __D_SIZE_H__
+#define __D_SIZE_H__
+
+
+#include "config.h"
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#else
+/* config.h defines {int,uint}*_t */
+#endif /* HAVE_INTTYPES_H */
+#endif /*HAVE_STDINT_H */
+
+typedef unsigned char uchar_t;
+typedef unsigned short ushort_t;
+typedef unsigned long ulong_t;
+typedef unsigned int uint_t;
+typedef unsigned char bool_t;
+
+
+#endif /* __D_SIZE_H__ */