[CONUTILS] Make the headers C++ compatible.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Jan 2018 14:48:59 +0000 (15:48 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Jan 2018 14:49:17 +0000 (15:49 +0100)
sdk/lib/conutils/pager.h
sdk/lib/conutils/screen.h
sdk/lib/conutils/stream.h
sdk/lib/conutils/utils.h

index 8a23875..6c62ab9 100644 (file)
 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 // #include <wincon.h>
 
@@ -71,4 +75,7 @@ ConResPaging(
     IN BOOL StartPaging,
     IN UINT uID);
 
+#ifdef __cplusplus
+}
+#endif
 #endif  /* __PAGER_H__ */
index 01a95c5..bc2cce9 100644 (file)
 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 #if 0
 
@@ -53,4 +57,7 @@ VOID
 ConClearScreen(IN PCON_SCREEN Screen);
 
 
+#ifdef __cplusplus
+}
+#endif
 #endif  /* __SCREEN_H__ */
index 7787d4b..9b70eb3 100644 (file)
 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Console I/O streams
  */
@@ -264,4 +268,7 @@ VOID
 ConClearLine(IN PCON_STREAM Stream);
 
 
+#ifdef __cplusplus
+}
+#endif
 #endif  /* __STREAM_H__ */
index c118ac6..52063c2 100644 (file)
 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * General-purpose utility functions (wrappers around,
  * or reimplementations of, Win32 APIs).
@@ -50,4 +54,7 @@ IsConsoleHandle(IN HANDLE hHandle);
 // #include <wincon.h>
 
 
+#ifdef __cplusplus
+}
+#endif
 #endif  /* __UTILS_H__ */