summaryrefslogtreecommitdiffstats
path: root/crypthash.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2004-08-08 10:48:39 +0000
committerThomas Roessler <roessler@does-not-exist.org>2004-08-08 10:48:39 +0000
commit003f264406446b476049787905645042fad76f7b (patch)
tree786a1d5b9b40e5389c44929965895cef1db33615 /crypthash.h
parent686f53cf4b5e794cbe7b89a77d2d579a7e79da80 (diff)
Fix uint32_t portability problem. Reported by Steve Kennedy.
Diffstat (limited to 'crypthash.h')
-rw-r--r--crypthash.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/crypthash.h b/crypthash.h
new file mode 100644
index 00000000..a2545b8e
--- /dev/null
+++ b/crypthash.h
@@ -0,0 +1,27 @@
+#ifndef _CRYPTHASH_H
+# define _CRYPTHASH_H
+
+# include "config.h"
+
+
+# include <sys/types.h>
+# if HAVE_INTTYPES_H
+# include <inttypes.h>
+# else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
+# endif
+
+/* POINTER defines a generic pointer type */
+typedef unsigned char *POINTER;
+
+# ifndef HAVE_UINT32_T
+# if SIZEOF_INT == 4
+typedef unsigned int uint32_t;
+# elif SIZEOF_LONG == 4
+typedef unsigned long uint32_t;
+# endif
+# endif
+
+#endif