diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-11-06 12:49:22 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-11-06 12:49:22 +0000 |
commit | 97daee89b35f6141db09aee612f0f377f754092f (patch) | |
tree | 1bb912e2c5c947ccb0940f0c09f66ecadf41de43 | |
parent | bfa45e11e52081c55294355f36fa547f163dcc67 (diff) | |
download | compiler-rt-97daee89b35f6141db09aee612f0f377f754092f.tar.gz |
tasn: improve sanitizer_internal_defs.h
The file uses namespaces and extern "LANG", so it's kinda senseless to use #ifdef __cplusplus
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167448 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_internal_defs.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_internal_defs.h b/lib/sanitizer_common/sanitizer_internal_defs.h index 1c766ae49..43a40b533 100644 --- a/lib/sanitizer_common/sanitizer_internal_defs.h +++ b/lib/sanitizer_common/sanitizer_internal_defs.h @@ -43,10 +43,7 @@ typedef unsigned long DWORD; // NOLINT # define NOINLINE __attribute__((noinline)) # define NORETURN __attribute__((noreturn)) # define THREADLOCAL __thread -# ifdef __cplusplus -# define NOTHROW throw() -# else -# define NOTHROW __attribute__((__nothrow__)) +# define NOTHROW throw() #endif #endif // _MSC_VER |