forked from OSchip/llvm-project
AddressSanitizer: quick fix - undef INT32_MIN etc to avoid macro redefinition
llvm-svn: 151165
This commit is contained in:
parent
fb927af24f
commit
53e191e77e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue