File: physfs_platforms.h

package info (click to toggle)
libphysfs 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,480 kB
  • ctags: 9,636
  • sloc: cpp: 30,944; ansic: 27,440; cs: 4,374; java: 3,077; makefile: 796; ruby: 461; perl: 59; sh: 8
file content (49 lines) | stat: -rw-r--r-- 1,561 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _INCL_PHYSFS_PLATFORMS
#define _INCL_PHYSFS_PLATFORMS

#ifndef __PHYSICSFS_INTERNAL__
#error Do not include this header from your applications.
#endif

/*
 * These only define the platforms to determine which files in the platforms
 *  directory should be compiled. For example, technically BeOS can be called
 *  a "unix" system, but since it doesn't use unix.c, we don't define
 *  PHYSFS_PLATFORM_UNIX on that system.
 */

#if (defined __HAIKU__)
#  define PHYSFS_PLATFORM_HAIKU
#  define PHYSFS_PLATFORM_BEOS
#  define PHYSFS_PLATFORM_POSIX
#elif ((defined __BEOS__) || (defined __beos__))
#  define PHYSFS_PLATFORM_BEOS
#  define PHYSFS_PLATFORM_POSIX
#elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
#  define PHYSFS_PLATFORM_POCKETPC
#elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
#  define PHYSFS_PLATFORM_WINDOWS
#elif (defined OS2)
#  define PHYSFS_PLATFORM_OS2
#elif ((defined __MACH__) && (defined __APPLE__))
/* To check if iphone or not, we need to include this file */
# include <TargetConditionals.h> 
# if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
#    define PHYSFS_PLATFORM_UNIX
#    define PHYSFS_PLATFORM_POSIX
#    define PHYSFS_NO_CDROM_SUPPORT
#  else
#    define PHYSFS_PLATFORM_MACOSX
#    define PHYSFS_PLATFORM_POSIX
#  endif
#elif defined(macintosh)
#  error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
#elif defined(unix)
#  define PHYSFS_PLATFORM_UNIX
#  define PHYSFS_PLATFORM_POSIX
#else
#  error Unknown platform.
#endif

#endif  /* include-once blocker. */