summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-03-22 13:06:50 +0000
committerbjarni <bjarni@openttd.org>2006-03-22 13:06:50 +0000
commit0b102f0e007a93209206c0fd898d725c402e16b2 (patch)
treeeda101e579e395fa1de8cb0fac3a661484c4946f /network_core.h
parentadab6f643878284b20eba0dff535923f6c1d8d8b (diff)
downloadopenttd-0b102f0e007a93209206c0fd898d725c402e16b2.tar.xz
(svn r4019) -Fix: [OSX] stopped using iconv for 10.2.8, since it was added in 10.3
this have the sideeffect that 10.2.8 will still have the "failure to save with certain chars in the filename bug", but at least it can compile again
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/network_core.h b/network_core.h
index 98dcea13a..7a9dd4e42 100644
--- a/network_core.h
+++ b/network_core.h
@@ -11,13 +11,10 @@
#ifdef ENABLE_NETWORK
-#ifdef __APPLE__
-#include <AvailabilityMacros.h>
-#if (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2)
+#if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2)
// OSX 10.2 don't have socklen_t defined, so we will define it here
typedef int socklen_t;
#endif
-#endif
// Windows stuff
#if defined(WIN32) || defined(WIN64)