summaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index acd8947..c7e989e 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -28,3 +28,29 @@
/* Define to filename of iid help text. */
#undef IID_HELP_FILE
+
+@BOTTOM@
+
+#if SIZEOF_LONG == 4
+typedef unsigned long uint32_t;
+typedef long int32_t;
+#else /* SIZEOF_LONG != 4 */
+#if SIZEOF_INT == 4
+typedef unsigned int uint32_t;
+typedef int int32_t;
+#else /* SIZEOF_INT != 4 */
+#error "Your system is weird. What integer has sizeof () == 4 ???"
+#endif /* SIZEOF_INT != 4 */
+#endif /* SIZEOF_LONG != 4 */
+
+#if SIZEOF_SHORT == 2
+typedef unsigned short uint16_t;
+#else
+#error "Your system is weird. sizeof (short) != 2"
+#endif
+
+#if SIZEOF_CHAR == 1
+typedef unsigned char uint8_t;
+#else
+#error "Your system is weird. sizeof (char) != 1"
+#endif