Browse Source

clause for cpp

Kajetan Johannes Hammerle 2 years ago
parent
commit
fb15513908
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Console.h

+ 8 - 0
Console.h

@@ -1,6 +1,10 @@
 #ifndef CONSOLE_H
 #define CONSOLE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdbool.h>
 #include <stdint.h>
 
@@ -15,4 +19,8 @@ bool initConsole();
 const char* getConsoleError();
 const ConsoleLine* readConsoleLine(const char* prefix);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif