summaryrefslogtreecommitdiff
path: root/ndb/include/ndb_global.h.in
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-01-03 20:12:07 +0100
committerunknown <joreland@mysql.com>2005-01-03 20:12:07 +0100
commita14a22583241e5a06b21cd55940352df86525258 (patch)
tree39acc5cd40e8fee9a4e30fe1914b04c5ed6b7c06 /ndb/include/ndb_global.h.in
parente23ba8ea59d6ce457b39207f242713372549a661 (diff)
parent9ecd9ac6b984f999b89a62fae782e1d6f277495a (diff)
downloadmariadb-git-a14a22583241e5a06b21cd55940352df86525258.tar.gz
Merge mysql.com:/home/jonas/src/mysql-4.1-fix
into mysql.com:/home/jonas/src/mysql-5.0 ndb/include/ndb_global.h.in: Auto merged ndb/include/ndb_types.h: Auto merged
Diffstat (limited to 'ndb/include/ndb_global.h.in')
-rw-r--r--ndb/include/ndb_global.h.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/ndb/include/ndb_global.h.in b/ndb/include/ndb_global.h.in
index aca67239719..d7a5cb1b1cf 100644
--- a/ndb/include/ndb_global.h.in
+++ b/ndb/include/ndb_global.h.in
@@ -31,12 +31,48 @@
#define HAVE_STRCASECMP
#define strcasecmp _strcmpi
#pragma warning(disable: 4503 4786)
+typedef unsigned __int64 Uint64;
+typedef signed __int64 Int64;
#else
#undef NDB_WIN32
#define DIR_SEPARATOR "/"
+typedef unsigned long long Uint64;
+typedef signed long long Int64;
#endif
#include <my_global.h>
+
+typedef signed char Int8;
+typedef unsigned char Uint8;
+typedef signed short Int16;
+typedef unsigned short Uint16;
+typedef signed int Int32;
+typedef unsigned int Uint32;
+
+typedef unsigned int UintR;
+
+#ifdef __SIZE_TYPE__
+typedef __SIZE_TYPE__ UintPtr;
+#elif SIZEOF_CHARP == 4
+typedef Uint32 UintPtr;
+#elif SIZEOF_CHARP == 8
+typedef Uint64 UintPtr;
+#else
+#error "Unknown size of (char *)"
+#endif
+
+#if ! (SIZEOF_CHAR == 1)
+#error "Invalid define for Uint8"
+#endif
+
+#if ! (SIZEOF_INT == 4)
+#error "Invalid define for Uint32"
+#endif
+
+#if ! (SIZEOF_LONG_LONG == 8)
+#error "Invalid define for Uint64"
+#endif
+
#include <my_alarm.h>
#ifdef _AIX