summaryrefslogtreecommitdiff
path: root/commons.h
diff options
context:
space:
mode:
Diffstat (limited to 'commons.h')
-rw-r--r--commons.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/commons.h b/commons.h
index 7c202d26..4083bb22 100644
--- a/commons.h
+++ b/commons.h
@@ -8,7 +8,8 @@
#ifdef __cplusplus
#include <cstdbool>
extern "C" {
-#else
+#endif
+#ifndef __cplusplus
#include <stdbool.h>
#endif