summaryrefslogtreecommitdiff
blob: 7523e3b44960c3210ebea9504f9c8f47328f85fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 27b8a5cc89898c3f12dae57a58b15efddee9fe18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zdenko=20Podobn=C3=BD?= <zdenop@gmail.com>
Date: Thu, 23 Jul 2015 23:14:53 +0200
Subject: [PATCH] fix GRAPHICS_DISABLED build

---
 ccstruct/imagedata.cpp | 4 ++++
 ccstruct/split.cpp     | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/ccstruct/imagedata.cpp b/ccstruct/imagedata.cpp
index 4016a92..3c244c7 100644
--- a/ccstruct/imagedata.cpp
+++ b/ccstruct/imagedata.cpp
@@ -17,6 +17,10 @@
 // limitations under the License.
 ///////////////////////////////////////////////////////////////////////
 
+// Include automatically generated configuration file if running autoconf.
+#ifdef HAVE_CONFIG_H
+#include "config_auto.h"
+#endif
 
 #include "imagedata.h"
 
diff --git a/ccstruct/split.cpp b/ccstruct/split.cpp
index 24650d4..6e6ea44 100644
--- a/ccstruct/split.cpp
+++ b/ccstruct/split.cpp
@@ -25,6 +25,11 @@
 /*----------------------------------------------------------------------
               I n c l u d e s
 ----------------------------------------------------------------------*/
+// Include automatically generated configuration file if running autoconf.
+#ifdef HAVE_CONFIG_H
+#include "config_auto.h"
+#endif
+
 #include "split.h"
 #include "coutln.h"
 #include "tprintf.h"