misc/libphysfs/physfs_platforms.h
author sheepluva
Fri, 29 Sep 2017 22:33:15 +0200
changeset 12598 d6bd8b327a09
parent 12218 bb5522e88ab2
permissions -rw-r--r--
don't use colorkey for land spray this fixes issue #220
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7768
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     1
#ifndef _INCL_PHYSFS_PLATFORMS
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     2
#define _INCL_PHYSFS_PLATFORMS
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     3
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     4
#ifndef __PHYSICSFS_INTERNAL__
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     5
#error Do not include this header from your applications.
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     6
#endif
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     7
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     8
/*
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
     9
 * These only define the platforms to determine which files in the platforms
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    10
 *  directory should be compiled. For example, technically BeOS can be called
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    11
 *  a "unix" system, but since it doesn't use unix.c, we don't define
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    12
 *  PHYSFS_PLATFORM_UNIX on that system.
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    13
 */
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    14
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    15
#if (defined __HAIKU__)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    16
#  define PHYSFS_PLATFORM_HAIKU 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    17
#  define PHYSFS_PLATFORM_BEOS 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    18
#  define PHYSFS_PLATFORM_POSIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    19
#elif ((defined __BEOS__) || (defined __beos__))
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    20
#  define PHYSFS_PLATFORM_BEOS 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    21
#  define PHYSFS_PLATFORM_POSIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    22
#elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    23
#  error PocketPC support was dropped from PhysicsFS 2.1. Sorry.
12218
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    24
#elif ((defined WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP)
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    25
#   define PHYSFS_PLATFORM_WINRT 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    26
#   define PHYSFS_NO_CDROM_SUPPORT 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    27
#   define PHYSFS_PLATFORM_WINDOWS 1
7768
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    28
#elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    29
#  define PHYSFS_PLATFORM_WINDOWS 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    30
#elif (defined OS2)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    31
#  error OS/2 support was dropped from PhysicsFS 2.1. Sorry.
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    32
#elif ((defined __MACH__) && (defined __APPLE__))
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    33
/* To check if iphone or not, we need to include this file */
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    34
#  include <TargetConditionals.h>
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    35
#  if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    36
#     define PHYSFS_NO_CDROM_SUPPORT 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    37
#  endif
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    38
#  define PHYSFS_PLATFORM_MACOSX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    39
#  define PHYSFS_PLATFORM_POSIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    40
#elif defined(macintosh)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    41
#  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
12218
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    42
#elif defined(ANDROID)
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    43
#  define PHYSFS_PLATFORM_LINUX 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    44
#  define PHYSFS_PLATFORM_UNIX 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    45
#  define PHYSFS_PLATFORM_POSIX 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    46
#  define PHYSFS_NO_CDROM_SUPPORT 1
7768
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    47
#elif defined(__linux)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    48
#  define PHYSFS_PLATFORM_LINUX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    49
#  define PHYSFS_PLATFORM_UNIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    50
#  define PHYSFS_PLATFORM_POSIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    51
#elif defined(__sun) || defined(sun)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    52
#  define PHYSFS_PLATFORM_SOLARIS 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    53
#  define PHYSFS_PLATFORM_UNIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    54
#  define PHYSFS_PLATFORM_POSIX 1
12218
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    55
#elif defined(__FreeBSD__) || defined(__DragonFly__)
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    56
#  define PHYSFS_PLATFORM_FREEBSD 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    57
#  define PHYSFS_PLATFORM_BSD 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    58
#  define PHYSFS_PLATFORM_UNIX 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    59
#  define PHYSFS_PLATFORM_POSIX 1
bb5522e88ab2 bulk copy of latest physfs to our misc/libphysfs since this seems to fix an off-by-1 error reliably hit in readln read of 1 byte probably introduced in the addition of the buffered read. Whether this is excessive or whether libphysfs should even be maintained by us is another matter. But at least we shouldn't crash
nemo
parents: 8524
diff changeset
    60
#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
7768
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    61
#  define PHYSFS_PLATFORM_BSD 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    62
#  define PHYSFS_PLATFORM_UNIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    63
#  define PHYSFS_PLATFORM_POSIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    64
#elif defined(unix) || defined(__unix__)
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    65
#  define PHYSFS_PLATFORM_UNIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    66
#  define PHYSFS_PLATFORM_POSIX 1
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    67
#else
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    68
#  error Unknown platform.
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    69
#endif
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    70
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    71
#endif  /* include-once blocker. */
13e2037ebc79 Try using PhysicsFS.
unc0rr
parents:
diff changeset
    72