summaryrefslogtreecommitdiff
path: root/buildlib/config.h.in
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:15 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:15 +0000
commit17a10bf5d838a2f620a673a1b97238a58a06983f (patch)
tree8fb564e04b28e806ccd493e3f655d83446ef48d4 /buildlib/config.h.in
parent93bf083d699c60f1ac40297bfa6783fb0cb800d8 (diff)
Md5 support
Author: jgg Date: 1998-10-31 05:19:59 GMT Md5 support
Diffstat (limited to 'buildlib/config.h.in')
-rw-r--r--buildlib/config.h.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/buildlib/config.h.in b/buildlib/config.h.in
index ad6695d8c..d30ca90e7 100644
--- a/buildlib/config.h.in
+++ b/buildlib/config.h.in
@@ -33,3 +33,38 @@
/* The package name string */
#undef PACKAGE
+
+/* Generate the fixed bit size types */
+#if SIZEOF_INT == 4
+# define INT32 int
+# define UINT32 unsigned int
+#else
+# if SIZEOF_LONG == 4
+# define INT32 long
+# define UINT32 unsigned long
+# else
+# if SIZEOF_SHORT == 4
+# define INT32 short
+# define UINT32 unsigned short
+# else
+# error Must have a form of 32-bit integer
+# endif
+# endif
+#endif
+
+#if SIZEOF_INT == 2
+# define INT16 int
+# define UINT16 unsigned int
+#else
+# if SIZEOF_LONG == 2
+# define INT16 long
+# define UINT16 unsigned long
+# else
+# if SIZEOF_SHORT == 2
+# define INT16 short
+# define UINT16 short
+# else
+# error Must have a form of 16-bit integer
+# endif
+# endif
+#endif