浏览代码

#ifdef __cplusplus added to allow including to .c file

PavelSindler 5 年之前
父节点
当前提交
0e0dbad871
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Firmware/Marlin.h

+ 4 - 0
Firmware/Marlin.h

@@ -64,9 +64,13 @@
 
 #include "lcd.h"
 
+#ifdef __cplusplus
 extern "C" {
+#endif
 extern FILE _uartout;
+#ifdef __cplusplus
 }
+#endif
 
 #define uartout (&_uartout)