https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1e87e2fa9df58a86f6492…
commit 1e87e2fa9df58a86f649280817d50f4655bc07b8
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Jan 27 15:48:59 2018 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Jan 27 15:49:17 2018 +0100
[CONUTILS] Make the headers C++ compatible.
---
sdk/lib/conutils/pager.h | 7 +++++++
sdk/lib/conutils/screen.h | 7 +++++++
sdk/lib/conutils/stream.h | 7 +++++++
sdk/lib/conutils/utils.h | 7 +++++++
4 files changed, 28 insertions(+)
diff --git a/sdk/lib/conutils/pager.h b/sdk/lib/conutils/pager.h
index 8a23875138..6c62ab955d 100644
--- a/sdk/lib/conutils/pager.h
+++ b/sdk/lib/conutils/pager.h
@@ -15,6 +15,10 @@
#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__ */
diff --git a/sdk/lib/conutils/screen.h b/sdk/lib/conutils/screen.h
index 01a95c5287..bc2cce9d14 100644
--- a/sdk/lib/conutils/screen.h
+++ b/sdk/lib/conutils/screen.h
@@ -15,6 +15,10 @@
#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__ */
diff --git a/sdk/lib/conutils/stream.h b/sdk/lib/conutils/stream.h
index 7787d4b8d5..9b70eb3c80 100644
--- a/sdk/lib/conutils/stream.h
+++ b/sdk/lib/conutils/stream.h
@@ -25,6 +25,10 @@
#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__ */
diff --git a/sdk/lib/conutils/utils.h b/sdk/lib/conutils/utils.h
index c118ac6502..52063c25bf 100644
--- a/sdk/lib/conutils/utils.h
+++ b/sdk/lib/conutils/utils.h
@@ -16,6 +16,10 @@
#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__ */