Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: newlib/libc/include/stdint.h

Issue 315213004: Fix definition of INTPTR_{MIN,MAX} in stdint.h (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-newlib.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: newlib/libc/include/stdint.h
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h
index e3e093b5e6adca6748e53c0ec533b0671b58d48d..3d606575bc477ab7a8e818bd218ab054a1783a64 100644
--- a/newlib/libc/include/stdint.h
+++ b/newlib/libc/include/stdint.h
@@ -190,7 +190,7 @@ typedef __uint_least64_t uint_least64_t;
typedef __intptr_t intptr_t;
typedef __uintptr_t uintptr_t;
-#ifdef __INTPTR_TYPE__
+#if defined(__INTPTR_TYPE__) && defined(__INTPTR_MAX__) && defined(__UINTPTR_MAX__)
#define INTPTR_MIN (-__INTPTR_MAX__ - 1)
#define INTPTR_MAX __INTPTR_MAX__
#define UINTPTR_MAX __UINTPTR_MAX__
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698