소스 검색

#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)