comparison stdint.h @ 6:2a946c144fe7

Added #ifndef for SIZE_MAX (it is defined in limits.h on MSVSC 8).
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Wed, 13 Dec 2006 09:47:48 +0000
parents 72746e08c7ec
children dfeb4c5e9077
comparison
equal deleted inserted replaced
5:72746e08c7ec 6:2a946c144fe7
158 #endif // _WIN64 ] 158 #endif // _WIN64 ]
159 159
160 #define SIG_ATOMIC_MIN INT_MIN 160 #define SIG_ATOMIC_MIN INT_MIN
161 #define SIG_ATOMIC_MAX INT_MAX 161 #define SIG_ATOMIC_MAX INT_MAX
162 162
163 #ifdef _WIN64 // [ 163 #ifndef SIZE_MAX // [
164 # define SIZE_MAX _UI64_MAX 164 # ifdef _WIN64 // [
165 #else // _WIN64 ][ 165 # define SIZE_MAX _UI64_MAX
166 # define SIZE_MAX _UI32_MAX 166 # else // _WIN64 ][
167 #endif // _WIN64 ] 167 # define SIZE_MAX _UI32_MAX
168 # endif // _WIN64 ]
169 #endif // SIZE_MAX ]
168 170
169 // WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h> 171 // WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h>
170 #ifndef WCHAR_MIN // [ 172 #ifndef WCHAR_MIN // [
171 #define WCHAR_MIN 0 173 # define WCHAR_MIN 0
172 #endif // WCHAR_MIN ] 174 #endif // WCHAR_MIN ]
173 #ifndef WCHAR_MAX // [ 175 #ifndef WCHAR_MAX // [
174 #define WCHAR_MAX _UI16_MAX 176 # define WCHAR_MAX _UI16_MAX
175 #endif // WCHAR_MAX ] 177 #endif // WCHAR_MAX ]
176 178
177 #define WINT_MIN 0 179 #define WINT_MIN 0
178 #define WINT_MAX _UI16_MAX 180 #define WINT_MAX _UI16_MAX
179 181