summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-25 15:47:20 +0000
committerDarkvater <darkvater@openttd.org>2006-03-25 15:47:20 +0000
commitc55d22676924b4e1850b83dc8e18cbd855774a06 (patch)
tree6e495eca9c50cab444a832c74155155f9a01d218
parent0c581f8361816980527dc648c81e81555e76857e (diff)
downloadopenttd-c55d22676924b4e1850b83dc8e18cbd855774a06.tar.xz
(svn r4109) - Fix (r4105) [iconv]: Only include the needed headers when ICONV is actually used. Thanks for noticing Bjarni
-rw-r--r--unix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unix.c b/unix.c
index 252777637..7374dce9a 100644
--- a/unix.c
+++ b/unix.c
@@ -8,15 +8,12 @@
#include "table/strings.h"
#include "hal.h"
#include "variables.h"
-#include "debug.h"
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <time.h>
#include <signal.h>
-#include <iconv.h>
-#include <errno.h>
#ifdef USE_HOMEDIR
#include <pwd.h>
@@ -613,6 +610,10 @@ void CSleep(int milliseconds)
#ifdef WITH_ICONV
+#include <iconv.h>
+#include <errno.h>
+#include "debug.h"
+
#define INTERNALCODE "ISO-8859-15"
/** Try and try to decipher the current locale from environmental