textscreen: Add extern "C" for C++ imports.

This fixes #941. Thanks to @Altazimuth for the suggestion.
This commit is contained in:
Simon Howard 2017-10-22 18:39:22 -04:00
parent 4edede3f4a
commit 58006edc22

View file

@ -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 */