summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 840480b808..bf4c551106 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -308,9 +308,11 @@
#ifdef USE_TILE
+#ifdef __cplusplus
#include "libgui.h"
#include "tilesdl.h"
#endif
+#endif
// =========================================================================
// Lua user scripts (NOTE: this may also be enabled in your makefile!)
@@ -464,6 +466,7 @@
// #define NEED_SNPRINTF
// Must include libutil.h here if one of the above is defined.
+#ifdef __cplusplus
#include "libutil.h"
template < class T >
@@ -474,5 +477,6 @@ inline void UNUSED(const volatile T &)
// And now headers we want precompiled
#include <externs.h>
#include "version.h"
+#endif
#endif