forked from OSchip/llvm-project
tsan: fix windows build
__declspec is not _WIN32, it's _MSC_VER llvm-svn: 167447
This commit is contained in:
parent
1ec08f3627
commit
e6b5a696e3
|
@ -24,7 +24,7 @@ using namespace __sanitizer; // NOLINT
|
||||||
#define WEAK SANITIZER_WEAK_ATTRIBUTE
|
#define WEAK SANITIZER_WEAK_ATTRIBUTE
|
||||||
|
|
||||||
// Platform-specific defs.
|
// Platform-specific defs.
|
||||||
#if defined(_WIN32)
|
#if defined(_MSC_VER)
|
||||||
typedef unsigned long DWORD; // NOLINT
|
typedef unsigned long DWORD; // NOLINT
|
||||||
# define ALWAYS_INLINE __declspec(forceinline)
|
# define ALWAYS_INLINE __declspec(forceinline)
|
||||||
// FIXME(timurrrr): do we need this on Windows?
|
// FIXME(timurrrr): do we need this on Windows?
|
||||||
|
@ -35,7 +35,7 @@ typedef unsigned long DWORD; // NOLINT
|
||||||
# define NORETURN __declspec(noreturn)
|
# define NORETURN __declspec(noreturn)
|
||||||
# define THREADLOCAL __declspec(thread)
|
# define THREADLOCAL __declspec(thread)
|
||||||
# define NOTHROW
|
# define NOTHROW
|
||||||
#else // _WIN32
|
#else // _MSC_VER
|
||||||
# define ALWAYS_INLINE __attribute__((always_inline))
|
# define ALWAYS_INLINE __attribute__((always_inline))
|
||||||
# define ALIAS(x) __attribute__((alias(x)))
|
# define ALIAS(x) __attribute__((alias(x)))
|
||||||
# define ALIGNED(x) __attribute__((aligned(x)))
|
# define ALIGNED(x) __attribute__((aligned(x)))
|
||||||
|
@ -48,7 +48,7 @@ typedef unsigned long DWORD; // NOLINT
|
||||||
# else
|
# else
|
||||||
# define NOTHROW __attribute__((__nothrow__))
|
# define NOTHROW __attribute__((__nothrow__))
|
||||||
#endif
|
#endif
|
||||||
#endif // _WIN32
|
#endif // _MSC_VER
|
||||||
|
|
||||||
// We have no equivalent of these on Windows.
|
// We have no equivalent of these on Windows.
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
Loading…
Reference in New Issue