From 5a26df83839d111697d296af1c50563be9def0c3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 6 Sep 2009 01:04:17 -0400 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physfs_platforms.h b/src/physfs_platforms.h index 14b3b222..9a185fcb 100644 --- a/src/physfs_platforms.h +++ b/src/physfs_platforms.h @@ -28,7 +28,7 @@ #elif ((defined __MACH__) && (defined __APPLE__)) /* To check if iphone or not, we need to include this file */ # include -# 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