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__ |