ossp-pkg/uuid/uuid_md5.c 1.8 -> 1.9
--- uuid_md5.c 2005/01/13 09:58:14 1.8
+++ uuid_md5.c 2005/01/13 10:30:41 1.9
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <string.h>
+#include "config.h"
#include "uuid_md5.h"
/*
@@ -77,10 +78,28 @@
typedef unsigned char *POINTER;
/* UINT2 defines a two byte word */
+#if SIZEOF_UNSIGNED_SHORT == 2
typedef unsigned short int UINT2;
+#elif SIZEOF_UNSIGNED_INT == 2
+typedef unsigned int UINT2;
+#elif SIZEOF_UNSIGNED_LONG == 2
+typedef unsigned long int UINT2;
+#else
+#error ERROR: unable to determine UINT2 type (two byte word)
+#endif
/* UINT4 defines a four byte word */
+#if SIZEOF_UNSIGNED_SHORT == 4
+typedef unsigned short int UINT4;
+#elif SIZEOF_UNSIGNED_INT == 4
+typedef unsigned int UINT4;
+#elif SIZEOF_UNSIGNED_LONG == 4
typedef unsigned long int UINT4;
+#elif SIZEOF_UNSIGNED_LONG_LONG == 4
+typedef unsigned long long int UINT4;
+#else
+#error ERROR: unable to determine UINT4 type (four byte word)
+#endif
/* MD5 context. */
typedef struct {
|
|