summaryrefslogtreecommitdiff
path: root/builtin/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/assert.h')
-rw-r--r--builtin/assert.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/builtin/assert.h b/builtin/assert.h
index 6ee2ac1b20..a2a5dd0228 100644
--- a/builtin/assert.h
+++ b/builtin/assert.h
@@ -11,6 +11,10 @@
#include "common.h"
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef CONFIG_DEBUG_ASSERT
#ifdef CONFIG_DEBUG_ASSERT_REBOOTS
@@ -46,4 +50,8 @@ extern void panic_assert_fail(const char *msg, const char *func,
#define assert(x...) ASSERT(x)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __CROS_EC_ASSERT_H__ */