commit 58006edc22d91b3a805ee8a1636e37de671ef1a0
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Oct 22 18:39:22 2017 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Oct 22 18:39:22 2017 -0400
textscreen: Add extern "C" for C++ imports.
This fixes #941. Thanks to @Altazimuth for the suggestion.
---
textscreen/textscreen.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/textscreen/textscreen.h b/textscreen/textscreen.h
index d88b58ca..c778994a 100644
--- a/textscreen/textscreen.h
+++ b/textscreen/textscreen.h
@@ -15,6 +15,10 @@
#ifndef TEXTSCREEN_H
#define TEXTSCREEN_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "../src/doomkeys.h"
#include "txt_main.h"
@@ -36,5 +40,9 @@
#include "txt_window_action.h"
#include "txt_window.h"
+#ifdef __cplusplus
+}
+#endif
+
#endif /* #ifndef TEXTSCREEN_H */