aboutsummaryrefslogtreecommitdiff
path: root/games/allacrost/files/patch-src-utils.cpp
blob: 3a19664418157562333367cfb451c4b88978d80b (plain) (blame)
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
--- src/utils.cpp.orig	2010-05-17 03:38:35.000000000 +0400
+++ src/utils.cpp	2013-09-17 03:18:36.343226027 +0400
@@ -21,6 +21,7 @@
 #else
 	#include <dirent.h>
 	#include <sys/types.h>
+	#include <unistd.h>
 	#include <pwd.h>
 #endif
 
@@ -337,7 +338,7 @@
 	}
 
 	const char *source_char = reinterpret_cast<const char *>(source);
-	#if (defined(_LIBICONV_VERSION) && _LIBICONV_VERSION == 0x0109)
+	#if 1
 	// We are using an iconv API that uses const char*
 	const char *sourceChar = source_char;
 	#else
@@ -369,7 +370,7 @@
 		return false;
 	}
 
-	#if (defined(_LIBICONV_VERSION) && _LIBICONV_VERSION == 0x0109)
+	#if 1
 		// We are using an iconv API that uses const char*
 		const char *sourceChar = source;
 	#else