physfs_platforms.h
changeset 818 e36f23f49042
child 825 b26da6cdcebb
equal deleted inserted replaced
817:f2131d5dc3dd 818:e36f23f49042
       
     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 __BEOS__) || (defined __beos__))
       
    16 #  define PHYSFS_PLATFORM_BEOS
       
    17 #  define PHYSFS_PLATFORM_POSIX
       
    18 #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
       
    19 #  define PHYSFS_PLATFORM_POCKETPC
       
    20 #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
       
    21 #  define PHYSFS_PLATFORM_WINDOWS
       
    22 #elif (defined OS2)
       
    23 #  define PHYSFS_PLATFORM_OS2
       
    24 #elif ((defined __MACH__) && (defined __APPLE__))
       
    25 #  define PHYSFS_PLATFORM_MACOSX
       
    26 #  define PHYSFS_PLATFORM_UNIX
       
    27 #  define PHYSFS_PLATFORM_POSIX
       
    28 #elif defined(macintosh)
       
    29 #  define PHYSFS_PLATFORM_MACCLASSIC
       
    30 #elif defined(unix)
       
    31 #  define PHYSFS_PLATFORM_UNIX
       
    32 #  define PHYSFS_PLATFORM_POSIX
       
    33 #else
       
    34 #  error Unknown platform.
       
    35 #endif
       
    36 
       
    37 #endif  /* include-once blocker. */
       
    38