Browse Source

#ifdef __cplusplus added to allow including to .c file

PavelSindler 6 years ago
parent
commit
0e0dbad871
1 changed files with 4 additions and 0 deletions
  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)