textscreen: Add extern "C" for C++ imports.
This fixes #941. Thanks to @Altazimuth for the suggestion.
This commit is contained in:
parent
4edede3f4a
commit
58006edc22
1 changed files with 8 additions and 0 deletions
|
|
@ -15,6 +15,10 @@
|
||||||
#ifndef TEXTSCREEN_H
|
#ifndef TEXTSCREEN_H
|
||||||
#define TEXTSCREEN_H
|
#define TEXTSCREEN_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../src/doomkeys.h"
|
#include "../src/doomkeys.h"
|
||||||
#include "txt_main.h"
|
#include "txt_main.h"
|
||||||
|
|
||||||
|
|
@ -36,5 +40,9 @@
|
||||||
#include "txt_window_action.h"
|
#include "txt_window_action.h"
|
||||||
#include "txt_window.h"
|
#include "txt_window.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* #ifndef TEXTSCREEN_H */
|
#endif /* #ifndef TEXTSCREEN_H */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue