diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-03-19 14:33:38 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-03-19 14:33:38 +0000 |
commit | 24e13723f8477d8c42ab8b2a7f4f69fc089842f1 (patch) | |
tree | b2ff89fa4a47ca3bd5e54c1066a1ab80b9b6cef8 /lib/sanitizer_common/sanitizer_internal_defs.h | |
parent | 83cb7877f608eb9b3d65981095216842f686c527 (diff) |
[sanitizer] Replace more platform checks with SANITIZER_ constants.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_internal_defs.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_internal_defs.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/lib/sanitizer_common/sanitizer_internal_defs.h b/lib/sanitizer_common/sanitizer_internal_defs.h index 12f01e31a..8922ef29c 100644 --- a/lib/sanitizer_common/sanitizer_internal_defs.h +++ b/lib/sanitizer_common/sanitizer_internal_defs.h @@ -13,36 +13,7 @@ #ifndef SANITIZER_DEFS_H #define SANITIZER_DEFS_H -#if !defined(__linux__) && !defined(__APPLE__) && !defined(_WIN32) -# error "This operating system is not supported" -#endif - -#if defined(__linux__) -# define SANITIZER_LINUX 1 -#else -# define SANITIZER_LINUX 0 -#endif - -#if defined(__APPLE__) -# define SANITIZER_MAC 1 -#else -# define SANITIZER_MAC 0 -#endif - -#if defined(_WIN32) -# define SANITIZER_WINDOWS 1 -#else -# define SANITIZER_WINDOWS 0 -#endif - -#if defined(__ANDROID__) || defined(ANDROID) -# define SANITIZER_ANDROID 1 -#else -# define SANITIZER_ANDROID 0 -#endif - -#define SANITIZER_POSIX (SANITIZER_LINUX || SANITIZER_MAC) - +#include "sanitizer_platform.h" #if defined(_WIN32) // FIXME find out what we need on Windows. __declspec(dllexport) ? |