1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
23
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(_WIN64)
24
#define NDB_SIZEOF_CHARP SIZEOF_CHARP
25
#define NDB_SIZEOF_CHAR SIZEOF_CHAR
26
#define NDB_SIZEOF_SHORT 2
27
#define NDB_SIZEOF_INT SIZEOF_INT
28
#define NDB_SIZEOF_LONG SIZEOF_LONG
29
#define NDB_SIZEOF_LONG_LONG SIZEOF_LONG_LONG
30
typedef unsigned __int64 Uint64;
31
typedef signed __int64 Int64;
33
#define NDB_SIZEOF_CHARP @NDB_SIZEOF_CHARP@
34
#define NDB_SIZEOF_CHAR @NDB_SIZEOF_CHAR@
35
#define NDB_SIZEOF_INT @NDB_SIZEOF_INT@
36
#define NDB_SIZEOF_SHORT @NDB_SIZEOF_SHORT@
37
#define NDB_SIZEOF_LONG @NDB_SIZEOF_LONG@
38
#define NDB_SIZEOF_LONG_LONG @NDB_SIZEOF_LONG_LONG@
39
typedef unsigned long long Uint64;
40
typedef signed long long Int64;
43
typedef signed char Int8;
44
typedef unsigned char Uint8;
45
typedef signed short Int16;
46
typedef unsigned short Uint16;
47
typedef signed int Int32;
48
typedef unsigned int Uint32;
50
typedef unsigned int UintR;
53
typedef __SIZE_TYPE__ UintPtr;
54
#elif NDB_SIZEOF_CHARP == 4
55
typedef Uint32 UintPtr;
56
#elif NDB_SIZEOF_CHARP == 8
57
typedef Uint64 UintPtr;
59
#error "Unknown size of (char *)"
62
#if ! (NDB_SIZEOF_CHAR == 1)
63
#error "Invalid define for Uint8"
66
#if ! (NDB_SIZEOF_SHORT == 2)
67
#error "Invalid define for Uint16"
70
#if ! (NDB_SIZEOF_INT == 4)
71
#error "Invalid define for Uint32"
74
#if ! (NDB_SIZEOF_LONG_LONG == 8)
75
#error "Invalid define for Uint64"
78
#include "ndb_constants.h"