misc/libphysfs/physfs_platforms.h
changeset 12213 bb5522e88ab2
parent 8524 a65e9bcf0a03
equal deleted inserted replaced
12212:ea891871f481 12213:bb5522e88ab2
    19 #elif ((defined __BEOS__) || (defined __beos__))
    19 #elif ((defined __BEOS__) || (defined __beos__))
    20 #  define PHYSFS_PLATFORM_BEOS 1
    20 #  define PHYSFS_PLATFORM_BEOS 1
    21 #  define PHYSFS_PLATFORM_POSIX 1
    21 #  define PHYSFS_PLATFORM_POSIX 1
    22 #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
    22 #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
    23 #  error PocketPC support was dropped from PhysicsFS 2.1. Sorry.
    23 #  error PocketPC support was dropped from PhysicsFS 2.1. Sorry.
       
    24 #elif ((defined WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP)
       
    25 #   define PHYSFS_PLATFORM_WINRT 1
       
    26 #   define PHYSFS_NO_CDROM_SUPPORT 1
       
    27 #   define PHYSFS_PLATFORM_WINDOWS 1
    24 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
    28 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
    25 #  define PHYSFS_PLATFORM_WINDOWS 1
    29 #  define PHYSFS_PLATFORM_WINDOWS 1
    26 #elif (defined OS2)
    30 #elif (defined OS2)
    27 #  error OS/2 support was dropped from PhysicsFS 2.1. Sorry.
    31 #  error OS/2 support was dropped from PhysicsFS 2.1. Sorry.
    28 #elif ((defined __MACH__) && (defined __APPLE__))
    32 #elif ((defined __MACH__) && (defined __APPLE__))
    33 #  endif
    37 #  endif
    34 #  define PHYSFS_PLATFORM_MACOSX 1
    38 #  define PHYSFS_PLATFORM_MACOSX 1
    35 #  define PHYSFS_PLATFORM_POSIX 1
    39 #  define PHYSFS_PLATFORM_POSIX 1
    36 #elif defined(macintosh)
    40 #elif defined(macintosh)
    37 #  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
    41 #  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
       
    42 #elif defined(ANDROID)
       
    43 #  define PHYSFS_PLATFORM_LINUX 1
       
    44 #  define PHYSFS_PLATFORM_UNIX 1
       
    45 #  define PHYSFS_PLATFORM_POSIX 1
       
    46 #  define PHYSFS_NO_CDROM_SUPPORT 1
    38 #elif defined(__linux)
    47 #elif defined(__linux)
    39 #  define PHYSFS_PLATFORM_LINUX 1
    48 #  define PHYSFS_PLATFORM_LINUX 1
    40 #  define PHYSFS_PLATFORM_UNIX 1
    49 #  define PHYSFS_PLATFORM_UNIX 1
    41 #  define PHYSFS_PLATFORM_POSIX 1
    50 #  define PHYSFS_PLATFORM_POSIX 1
    42 #elif defined(__sun) || defined(sun)
    51 #elif defined(__sun) || defined(sun)
    43 #  define PHYSFS_PLATFORM_SOLARIS 1
    52 #  define PHYSFS_PLATFORM_SOLARIS 1
    44 #  define PHYSFS_PLATFORM_UNIX 1
    53 #  define PHYSFS_PLATFORM_UNIX 1
    45 #  define PHYSFS_PLATFORM_POSIX 1
    54 #  define PHYSFS_PLATFORM_POSIX 1
    46 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragonFly__)
    55 #elif defined(__FreeBSD__) || defined(__DragonFly__)
       
    56 #  define PHYSFS_PLATFORM_FREEBSD 1
       
    57 #  define PHYSFS_PLATFORM_BSD 1
       
    58 #  define PHYSFS_PLATFORM_UNIX 1
       
    59 #  define PHYSFS_PLATFORM_POSIX 1
       
    60 #elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
    47 #  define PHYSFS_PLATFORM_BSD 1
    61 #  define PHYSFS_PLATFORM_BSD 1
    48 #  define PHYSFS_PLATFORM_UNIX 1
    62 #  define PHYSFS_PLATFORM_UNIX 1
    49 #  define PHYSFS_PLATFORM_POSIX 1
    63 #  define PHYSFS_PLATFORM_POSIX 1
    50 #elif defined(unix) || defined(__unix__)
    64 #elif defined(unix) || defined(__unix__)
    51 #  define PHYSFS_PLATFORM_UNIX 1
    65 #  define PHYSFS_PLATFORM_UNIX 1