2009-04-24 Joseph Myers <joseph@codesourcery.com>

* libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
	if __UINTPTR_MAX__ defined.
This commit is contained in:
Jeff Johnston 2009-04-24 21:55:07 +00:00
parent 546065b39f
commit de19487224
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-04-24 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
if __UINTPTR_MAX__ defined.
2009-04-24 Eric Blake <ebb9@byu.net>
Be namespace clean in ctype.h.

View File

@ -244,7 +244,11 @@ typedef signed __PTRDIFF_TYPE__ intptr_t;
typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
#define INTPTR_MAX PTRDIFF_MAX
#define INTPTR_MIN PTRDIFF_MIN
#ifdef __UINTPTR_MAX__
#define UINTPTR_MAX __UINTPTR_MAX__
#else
#define UINTPTR_MAX (2UL * PTRDIFF_MAX + 1)
#endif
#else
/*
* Fallback to hardcoded values,