Skip to content

Commit

Permalink
Added #ifndef for SIZE_MAX (it is defined in limits.h on MSVSC 8).
Browse files Browse the repository at this point in the history
  • Loading branch information
chemeris committed Dec 13, 2006
1 parent e4de318 commit 4d79b46
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d79b46

Please sign in to comment.