Browse Source

Mac: only do LOVE_LEGENDARY_LIBSTDCXX_HACK when the minimum required version is OS 10.5 (resolves issue #789)

Alex Szpakowski 11 years ago
parent
commit
70996a417f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/common/config.h

+ 4 - 1
src/common/config.h

@@ -30,6 +30,7 @@
 #endif
 #endif
 #if defined(__APPLE__)
 #if defined(__APPLE__)
 #	define LOVE_MACOSX 1
 #	define LOVE_MACOSX 1
+#	include <AvailabilityMacros.h>
 #endif
 #endif
 
 
 // Endianness.
 // Endianness.
@@ -71,7 +72,9 @@
 #endif
 #endif
 
 
 #if defined(LOVE_MACOSX)
 #if defined(LOVE_MACOSX)
-#	define LOVE_LEGENDARY_LIBSTDCXX_HACK
+#	if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
+#		define LOVE_LEGENDARY_LIBSTDCXX_HACK
+#	endif
 #	define LOVE_LEGENDARY_APP_ARGV_HACK
 #	define LOVE_LEGENDARY_APP_ARGV_HACK
 #endif
 #endif