changeset 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
files stdint.h
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/stdint.h
+++ b/stdint.h
@@ -160,18 +160,20 @@ typedef uint64_t  uintmax_t;
 #define SIG_ATOMIC_MIN  INT_MIN
 #define SIG_ATOMIC_MAX  INT_MAX
 
-#ifdef _WIN64 // [
-#  define SIZE_MAX  _UI64_MAX
-#else // _WIN64 ][
-#  define SIZE_MAX  _UI32_MAX
-#endif // _WIN64 ]
+#ifndef SIZE_MAX // [
+#  ifdef _WIN64 // [
+#     define SIZE_MAX  _UI64_MAX
+#  else // _WIN64 ][
+#     define SIZE_MAX  _UI32_MAX
+#  endif // _WIN64 ]
+#endif // SIZE_MAX ]
 
 // WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h>
 #ifndef WCHAR_MIN // [
-#define WCHAR_MIN  0
+#  define WCHAR_MIN  0
 #endif  // WCHAR_MIN ]
 #ifndef WCHAR_MAX // [
-#define WCHAR_MAX  _UI16_MAX
+#  define WCHAR_MAX  _UI16_MAX
 #endif  // WCHAR_MAX ]
 
 #define WINT_MIN  0