aboutsummaryrefslogtreecommitdiffstats
path: root/common/static_assert.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-29 11:51:41 -0700
committerChris Robinson <[email protected]>2018-10-29 11:51:41 -0700
commit5fea511ccec500f575898df33e9934dec075527c (patch)
treef7112a50b2d76a28d5b30a8bf8e523442dafde90 /common/static_assert.h
parent662e1c5cc2107d45895ac4f6d8c598c89016eaeb (diff)
Fix some more headers for C++
Diffstat (limited to 'common/static_assert.h')
-rw-r--r--common/static_assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/static_assert.h b/common/static_assert.h
index bf0ce065..3a554fb5 100644
--- a/common/static_assert.h
+++ b/common/static_assert.h
@@ -4,7 +4,7 @@
#include <assert.h>
-#ifndef static_assert
+#if !defined(static_assert) && !defined(__cplusplus)
#ifdef HAVE_C11_STATIC_ASSERT
#define static_assert _Static_assert
#else