From 58006edc22d91b3a805ee8a1636e37de671ef1a0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 22 Oct 2017 18:39:22 -0400 Subject: [PATCH] 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 */