summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2012-11-06 12:49:22 +0000
committerDmitry Vyukov <dvyukov@google.com>2012-11-06 12:49:22 +0000
commit97daee89b35f6141db09aee612f0f377f754092f (patch)
tree1bb912e2c5c947ccb0940f0c09f66ecadf41de43
parentbfa45e11e52081c55294355f36fa547f163dcc67 (diff)
downloadcompiler-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.h5
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