summaryrefslogtreecommitdiff
path: root/ndb/include
diff options
context:
space:
mode:
authorjoreland@mysql.com <>2005-01-03 19:42:38 +0100
committerjoreland@mysql.com <>2005-01-03 19:42:38 +0100
commitb852147b5d5fecf17bbc22973ab6dfc40413594e (patch)
treec334ac3ad2b064a60bb7b2942b40096d24ca3b6a /ndb/include
parentc725e090895e3d63073acc49ccad47faaf6328b5 (diff)
parent7d0d1919999447482475820233b815899095a99b (diff)
downloadmariadb-git-b852147b5d5fecf17bbc22973ab6dfc40413594e.tar.gz
Merge mysql.com:/home/jonas/src/mysql-4.1-fix
into mysql.com:/home/jonas/src/mysql-4.1
Diffstat (limited to 'ndb/include')
-rw-r--r--ndb/include/ndb_types.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/ndb/include/ndb_types.h b/ndb/include/ndb_types.h
index 0d603cc2ab3..1284ace3bbc 100644
--- a/ndb/include/ndb_types.h
+++ b/ndb/include/ndb_types.h
@@ -30,31 +30,22 @@ typedef unsigned int Uint32;
typedef unsigned int UintR;
-#ifdef __SIZE_TYPE__
-typedef __SIZE_TYPE__ UintPtr;
-#else
-#include <ndb_global.h>
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-#if defined(WIN32) || defined(NDB_WIN32)
-typedef Uint32 UintPtr;
-#else
-typedef uintptr_t UintPtr;
-#endif
-#endif
-
#if defined(WIN32) || defined(NDB_WIN32)
typedef unsigned __int64 Uint64;
typedef signed __int64 Int64;
-typedef UintPtr ssize_t;
#else
typedef unsigned long long Uint64;
typedef signed long long Int64;
#endif
+#ifdef __SIZE_TYPE__
+typedef __SIZE_TYPE__ UintPtr;
+#else
+#if SIZEOF_CHARP == 4
+typedef Uint32 UintPtr;
+#else
+typedef Uint64 UintPtr;
+#endif
+#endif
#endif