summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/asan/asan_internal.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/compiler-rt/lib/asan/asan_internal.h b/compiler-rt/lib/asan/asan_internal.h
index 8891e3af48c..a3c6b383f41 100644
--- a/compiler-rt/lib/asan/asan_internal.h
+++ b/compiler-rt/lib/asan/asan_internal.h
@@ -68,12 +68,18 @@ extern "C" void* _ReturnAddress(void);
# define __INT64_C(c) c ## LL
# define __UINT64_C(c) c ## ULL
#endif // __WORDSIZE == 64
-# define INT32_MIN (-2147483647-1)
-# define INT32_MAX (2147483647)
-# define UINT32_MAX (4294967295U)
-# define INT64_MIN (-__INT64_C(9223372036854775807)-1)
-# define INT64_MAX (__INT64_C(9223372036854775807))
-# define UINT64_MAX (__UINT64_C(18446744073709551615))
+#undef INT32_MIN
+#define INT32_MIN (-2147483647-1)
+#undef INT32_MAX
+#define INT32_MAX (2147483647)
+#undef UINT32_MAX
+#define UINT32_MAX (4294967295U)
+#undef INT64_MIN
+#define INT64_MIN (-__INT64_C(9223372036854775807)-1)
+#undef INT64_MAX
+#define INT64_MAX (__INT64_C(9223372036854775807))
+#undef UINT64_MAX
+#define UINT64_MAX (__UINT64_C(18446744073709551615))
#define ASAN_DEFAULT_FAILURE_EXITCODE 1
OpenPOWER on IntegriCloud