physfs_platforms.h
changeset 942 e7bed87e50ce
parent 847 5e5e6c067413
child 947 b0c91495af9b
equal deleted inserted replaced
941:788748c90925 942:e7bed87e50ce
    20 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
    20 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
    21 #  define PHYSFS_PLATFORM_WINDOWS
    21 #  define PHYSFS_PLATFORM_WINDOWS
    22 #elif (defined OS2)
    22 #elif (defined OS2)
    23 #  define PHYSFS_PLATFORM_OS2
    23 #  define PHYSFS_PLATFORM_OS2
    24 #elif ((defined __MACH__) && (defined __APPLE__))
    24 #elif ((defined __MACH__) && (defined __APPLE__))
    25 #  define PHYSFS_PLATFORM_MACOSX
    25 /* To check if iphone or not, we need to inlcude this file */
    26 #  define PHYSFS_PLATFORM_POSIX
    26 # include <TargetConditionals.h> 
       
    27 # if (defined(TARGET_IPHONE_SIMULATOR) || (defined TARGET_OS_IPHONE))
       
    28 #    define PHYSFS_PLATFORM_UNIX
       
    29 #    define PHYSFS_PLATFORM_POSIX
       
    30 #    define PHYSFS_NO_CDROM_SUPPORT
       
    31 #  else
       
    32 #    define PHYSFS_PLATFORM_MACOSX
       
    33 #    define PHYSFS_PLATFORM_POSIX
       
    34 #  endif
    27 #elif defined(macintosh)
    35 #elif defined(macintosh)
    28 #  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
    36 #  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
    29 #elif defined(unix)
    37 #elif defined(unix)
    30 #  define PHYSFS_PLATFORM_UNIX
    38 #  define PHYSFS_PLATFORM_UNIX
    31 #  define PHYSFS_PLATFORM_POSIX
    39 #  define PHYSFS_PLATFORM_POSIX