Kaynağa Gözat

#ifdef __cplusplus added to allow including to .c file

PavelSindler 5 yıl önce
ebeveyn
işleme
0e0dbad871
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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)