summaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
committerGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
commitf7fbb00cfa697cd1a47def573df65dd4d326c742 (patch)
treeeda6aec5ae8de93a0d90dfe3e05d0c09d0e4cb8b /acconfig.h
parent9da09030255feafece5f9d87617a64d5c66ede6f (diff)
downloadidutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.gz
idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.bz2
idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.zip
imported from mkid-3.0.5r3_0_5
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