misc/libphysfs/physfs_platforms.h
branchphysfslayer
changeset 8524 a65e9bcf0a03
parent 8522 1853628ae285
child 12213 bb5522e88ab2
equal deleted inserted replaced
8522:1853628ae285 8524:a65e9bcf0a03
       
     1 #ifndef _INCL_PHYSFS_PLATFORMS
       
     2 #define _INCL_PHYSFS_PLATFORMS
       
     3 
       
     4 #ifndef __PHYSICSFS_INTERNAL__
       
     5 #error Do not include this header from your applications.
       
     6 #endif
       
     7 
       
     8 /*
       
     9  * These only define the platforms to determine which files in the platforms
       
    10  *  directory should be compiled. For example, technically BeOS can be called
       
    11  *  a "unix" system, but since it doesn't use unix.c, we don't define
       
    12  *  PHYSFS_PLATFORM_UNIX on that system.
       
    13  */
       
    14 
       
    15 #if (defined __HAIKU__)
       
    16 #  define PHYSFS_PLATFORM_HAIKU 1
       
    17 #  define PHYSFS_PLATFORM_BEOS 1
       
    18 #  define PHYSFS_PLATFORM_POSIX 1
       
    19 #elif ((defined __BEOS__) || (defined __beos__))
       
    20 #  define PHYSFS_PLATFORM_BEOS 1
       
    21 #  define PHYSFS_PLATFORM_POSIX 1
       
    22 #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
       
    23 #  error PocketPC support was dropped from PhysicsFS 2.1. Sorry.
       
    24 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
       
    25 #  define PHYSFS_PLATFORM_WINDOWS 1
       
    26 #elif (defined OS2)
       
    27 #  error OS/2 support was dropped from PhysicsFS 2.1. Sorry.
       
    28 #elif ((defined __MACH__) && (defined __APPLE__))
       
    29 /* To check if iphone or not, we need to include this file */
       
    30 #  include <TargetConditionals.h>
       
    31 #  if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
       
    32 #     define PHYSFS_NO_CDROM_SUPPORT 1
       
    33 #  endif
       
    34 #  define PHYSFS_PLATFORM_MACOSX 1
       
    35 #  define PHYSFS_PLATFORM_POSIX 1
       
    36 #elif defined(macintosh)
       
    37 #  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
       
    38 #elif defined(__linux)
       
    39 #  define PHYSFS_PLATFORM_LINUX 1
       
    40 #  define PHYSFS_PLATFORM_UNIX 1
       
    41 #  define PHYSFS_PLATFORM_POSIX 1
       
    42 #elif defined(__sun) || defined(sun)
       
    43 #  define PHYSFS_PLATFORM_SOLARIS 1
       
    44 #  define PHYSFS_PLATFORM_UNIX 1
       
    45 #  define PHYSFS_PLATFORM_POSIX 1
       
    46 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragonFly__)
       
    47 #  define PHYSFS_PLATFORM_BSD 1
       
    48 #  define PHYSFS_PLATFORM_UNIX 1
       
    49 #  define PHYSFS_PLATFORM_POSIX 1
       
    50 #elif defined(unix) || defined(__unix__)
       
    51 #  define PHYSFS_PLATFORM_UNIX 1
       
    52 #  define PHYSFS_PLATFORM_POSIX 1
       
    53 #else
       
    54 #  error Unknown platform.
       
    55 #endif
       
    56 
       
    57 #endif  /* include-once blocker. */
       
    58