Explorar el Código

#ifdef __cplusplus added to allow including to .c file

PavelSindler hace 5 años
padre
commit
0e0dbad871
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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)