aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ch.h')
-rw-r--r--src/include/ch.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/ch.h b/src/include/ch.h
index aa77df544..b7889a9f5 100644
--- a/src/include/ch.h
+++ b/src/include/ch.h
@@ -92,7 +92,13 @@
#define NULL 0
#endif
-void chSysInit(void);
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void chSysInit(void);
+#ifdef __cplusplus
+}
+#endif
#endif /* _CH_H_ */