Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-04-25 01:55:07 +0400
committerJeff Johnston <jjohnstn@redhat.com>2009-04-25 01:55:07 +0400
commitde194872240d47137474f610afca16d2ee659549 (patch)
tree7d25e314c5d665a3d1449d0d88b1ee1f7dab1dd1 /newlib/libc
parent546065b39f8580633cb7f48e27219af1230ebae3 (diff)
2009-04-24 Joseph Myers <joseph@codesourcery.com>
* libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__ if __UINTPTR_MAX__ defined.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/stdint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h
index 2791cd544..94759e969 100644
--- a/newlib/libc/include/stdint.h
+++ b/newlib/libc/include/stdint.h
@@ -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,