Fixed building with Mac OS X 10.6 SDK.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 06 Sep 2009 01:04:17 -0400
changeset 1011 6bc1363ad17d
parent 1009 56a3873c63e4
child 1012 f254870dd7dd
Fixed building with Mac OS X 10.6 SDK. The SDK defines the TARGET_OS_IPHONE, etc symbols to 0, so you can't check "#if defined" for them.
src/physfs_platforms.h
--- a/src/physfs_platforms.h	Sun Jul 12 16:43:59 2009 -0400
+++ b/src/physfs_platforms.h	Sun Sep 06 01:04:17 2009 -0400
@@ -28,7 +28,7 @@
 #elif ((defined __MACH__) && (defined __APPLE__))
 /* To check if iphone or not, we need to include this file */
 # include <TargetConditionals.h> 
-# if (defined(TARGET_IPHONE_SIMULATOR) || (defined TARGET_OS_IPHONE))
+# if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
 #    define PHYSFS_PLATFORM_UNIX
 #    define PHYSFS_PLATFORM_POSIX
 #    define PHYSFS_NO_CDROM_SUPPORT