summaryrefslogtreecommitdiff
path: root/src/wasm-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-common.h')
-rw-r--r--src/wasm-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-common.h b/src/wasm-common.h
index c95ada2f..27aa3eb5 100644
--- a/src/wasm-common.h
+++ b/src/wasm-common.h
@@ -3,8 +3,12 @@
#ifdef __cplusplus
#define EXTERN_C extern "C"
+#define EXTERN_C_BEGIN extern "C" {
+#define EXTERN_C_END }
#else
#define EXTERN_C
+#define EXTERN_C_BEGIN
+#define EXTERN_C_END
#endif
#define WARN_UNUSED __attribute__ ((warn_unused_result))