@@ -36,23 +36,14 @@ This file is public domain and comes with NO WARRANTY of any kind */
36
36
37
37
#if defined(_WIN32 ) || defined(_WIN64 ) || defined(__WIN32__ ) || defined(WIN32 )
38
38
# include "ext/mysqlnd/config-win.h"
39
- #else
40
- # include <ext/mysqlnd/php_mysqlnd_config.h>
41
39
#endif /* _WIN32... */
42
40
43
41
#if __STDC_VERSION__ < 199901L && !defined(atoll )
44
42
/* "inline" is a keyword */
45
43
#define atoll atol
46
44
#endif
47
45
48
-
49
- #ifdef HAVE_SYS_TYPES_H
50
- #include <sys/types.h>
51
- #endif
52
-
53
- #ifdef HAVE_STDINT_H
54
- #include <stdint.h>
55
- #endif
46
+ #include "php_stdint.h"
56
47
57
48
#if SIZEOF_LONG_LONG > 4 && !defined(_LONG_LONG )
58
49
#define _LONG_LONG 1 /* For AIX string library */
@@ -70,102 +61,6 @@ This file is public domain and comes with NO WARRANTY of any kind */
70
61
#define HAVE_LONG_LONG 1
71
62
#endif
72
63
73
-
74
- /* Typdefs for easyier portability */
75
- #ifndef HAVE_INT8_T
76
- #ifndef HAVE_INT8
77
- typedef signed char int8_t ; /* Signed integer >= 8 bits */
78
- #else
79
- typedef int8 int8_t ; /* Signed integer >= 8 bits */
80
- #endif
81
- #endif
82
-
83
- #ifndef HAVE_UINT8_T
84
- #ifndef HAVE_UINT8
85
- typedef unsigned char uint8_t ; /* Unsigned integer >= 8 bits */
86
- #else
87
- typedef uint8 uint8_t ; /* Signed integer >= 8 bits */
88
- #endif
89
- #endif
90
-
91
- #ifndef HAVE_INT16_T
92
- #ifndef HAVE_INT16
93
- typedef signed short int16_t ; /* Signed integer >= 16 bits */
94
- #else
95
- typedef int16 int16_t ; /* Signed integer >= 16 bits */
96
- #endif
97
- #endif
98
-
99
- #ifndef HAVE_UINT16_T
100
- #ifndef HAVE_UINT16
101
- typedef unsigned short uint16_t ; /* Signed integer >= 16 bits */
102
- #else
103
- typedef uint16 uint16_t ; /* Signed integer >= 16 bits */
104
- #endif
105
- #endif
106
-
107
-
108
- #ifndef HAVE_INT32_T
109
- #ifdef HAVE_INT32
110
- typedef int32 int32_t ;
111
- #elif SIZEOF_INT == 4
112
- typedef signed int int32_t ;
113
- #elif SIZEOF_LONG == 4
114
- typedef signed long int32_t ;
115
- #else
116
- error "Neither int nor long is of 4 bytes width"
117
- #endif
118
- #endif /* HAVE_INT32_T */
119
-
120
- #ifndef HAVE_UINT32_T
121
- #ifdef HAVE_UINT32
122
- typedef uint32 uint32_t ;
123
- #elif SIZEOF_INT == 4
124
- typedef unsigned int uint32_t ;
125
- #elif SIZEOF_LONG == 4
126
- typedef unsigned long uint32_t ;
127
- #else
128
- #error "Neither int nor long is of 4 bytes width"
129
- #endif
130
- #endif /* HAVE_UINT32_T */
131
-
132
- #ifndef HAVE_INT64_T
133
- #ifdef HAVE_INT64
134
- typedef int64 int64_t ;
135
- #elif SIZEOF_INT == 8
136
- typedef signed int int64_t ;
137
- #elif SIZEOF_LONG == 8
138
- typedef signed long int64_t ;
139
- #elif SIZEOF_LONG_LONG == 8
140
- #ifdef PHP_WIN32
141
- typedef __int64 int64_t ;
142
- #else
143
- typedef signed long long int64_t ;
144
- #endif
145
- #else
146
- #error "Neither int nor long nor long long is of 8 bytes width"
147
- #endif
148
- #endif /* HAVE_INT64_T */
149
-
150
- #ifndef HAVE_UINT64_T
151
- #ifdef HAVE_UINT64
152
- typedef uint64 uint64_t ;
153
- #elif SIZEOF_INT == 8
154
- typedef unsigned int uint64_t ;
155
- #elif SIZEOF_LONG == 8
156
- typedef unsigned long uint64_t ;
157
- #elif SIZEOF_LONG_LONG == 8
158
- #ifdef PHP_WIN32
159
- typedef unsigned __int64 uint64_t ;
160
- #else
161
- typedef unsigned long long uint64_t ;
162
- #endif
163
- #else
164
- #error "Neither int nor long nor long long is of 8 bytes width"
165
- #endif
166
- #endif /* HAVE_INT64_T */
167
-
168
-
169
64
#ifdef PHP_WIN32
170
65
#define MYSQLND_LLU_SPEC "%I64u"
171
66
#define MYSQLND_LL_SPEC "%I64d"
0 commit comments