summaryrefslogtreecommitdiff
path: root/lib/asan/asan_internal.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-15 13:09:52 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-15 13:09:52 +0000
commitc925697df6626bb0ea27ea96539bf0580f8f3d3d (patch)
tree83430d737636d136acbc1bc4765e162336dbc5ef /lib/asan/asan_internal.h
parent88207ab15125e2f1e9b3d541b735b2b8aba9b6d9 (diff)
downloadcompiler-rt-c925697df6626bb0ea27ea96539bf0580f8f3d3d.tar.gz
compiler-rt-c925697df6626bb0ea27ea96539bf0580f8f3d3d.tar.bz2
compiler-rt-c925697df6626bb0ea27ea96539bf0580f8f3d3d.tar.xz
[Sanitizer] move all the rest re-implementations of libc functions from ASan runtime to common sanitizer runtime
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r--lib/asan/asan_internal.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h
index f1934e87..5161a32f 100644
--- a/lib/asan/asan_internal.h
+++ b/lib/asan/asan_internal.h
@@ -27,28 +27,6 @@ extern "C" void* _ReturnAddress(void);
# pragma intrinsic(_ReturnAddress)
#endif // defined(_WIN32)
-// Limits for integral types. We have to redefine it in case we don't
-// have stdint.h (like in Visual Studio 9).
-#if __WORDSIZE == 64
-# define __INT64_C(c) c ## L
-# define __UINT64_C(c) c ## UL
-#else
-# define __INT64_C(c) c ## LL
-# define __UINT64_C(c) c ## ULL
-#endif // __WORDSIZE == 64
-#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
#if defined(__linux__)