소스 검색

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.
Ryan C. Gordon 17 년 전
부모
커밋
5a26df8383
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/physfs_platforms.h

+ 1 - 1
src/physfs_platforms.h

@@ -28,7 +28,7 @@
 #elif ((defined __MACH__) && (defined __APPLE__))
 #elif ((defined __MACH__) && (defined __APPLE__))
 /* To check if iphone or not, we need to include this file */
 /* To check if iphone or not, we need to include this file */
 # include <TargetConditionals.h> 
 # 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_UNIX
 #    define PHYSFS_PLATFORM_POSIX
 #    define PHYSFS_PLATFORM_POSIX
 #    define PHYSFS_NO_CDROM_SUPPORT
 #    define PHYSFS_NO_CDROM_SUPPORT