diff options
author | unknown <joreland@mysql.com> | 2005-01-03 23:36:19 +0100 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-01-03 23:36:19 +0100 |
commit | 6926e703851cf5703e701665690ce9f34aa39b0d (patch) | |
tree | e341dc8de590290da9840030c44a3cde4f8d46e1 /ndb | |
parent | 3410ce0927a659d23137ae41580cd4be787697a1 (diff) | |
parent | fcb2a0abd120e2073c84d3658bcd1a9f9083afe4 (diff) | |
download | mariadb-git-6926e703851cf5703e701665690ce9f34aa39b0d.tar.gz |
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/home/jonas/src/mysql-5.0-ndb
BitKeeper/etc/logging_ok:
auto-union
sql/ha_ndbcluster.cc:
Auto merged
sql/ha_ndbcluster.h:
Auto merged
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/include/ndb_global.h.in | 36 | ||||
-rw-r--r-- | ndb/include/ndb_types.h | 36 |
2 files changed, 37 insertions, 35 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 diff --git a/ndb/include/ndb_types.h b/ndb/include/ndb_types.h index cec6c48c15c..300765cb775 100644 --- a/ndb/include/ndb_types.h +++ b/ndb/include/ndb_types.h @@ -21,41 +21,7 @@ #ifndef NDB_TYPES_H #define NDB_TYPES_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; -#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 - +#include "ndb_global.h" #include "ndb_constants.h" #endif |