Skip to content

Latest commit

 

History

History
74 lines (69 loc) · 2.58 KB

physfs_platforms.h

File metadata and controls

74 lines (69 loc) · 2.58 KB
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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.
*/
Nov 5, 2008
Nov 5, 2008
15
#if (defined __HAIKU__)
Mar 20, 2012
Mar 20, 2012
16
17
# define PHYSFS_PLATFORM_HAIKU 1
# define PHYSFS_PLATFORM_POSIX 1
Nov 5, 2008
Nov 5, 2008
18
#elif ((defined __BEOS__) || (defined __beos__))
Jul 12, 2017
Jul 12, 2017
19
# error BeOS support was dropped from PhysicsFS 2.1. Sorry. Try Haiku!
20
#elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
Mar 9, 2012
Mar 9, 2012
21
# error PocketPC support was dropped from PhysicsFS 2.1. Sorry.
Mar 29, 2015
Mar 29, 2015
22
#elif ((defined WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP)
Apr 20, 2015
Apr 20, 2015
23
24
25
# define PHYSFS_PLATFORM_WINRT 1
# define PHYSFS_NO_CDROM_SUPPORT 1
# define PHYSFS_PLATFORM_WINDOWS 1
26
#elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
Mar 20, 2012
Mar 20, 2012
27
# define PHYSFS_PLATFORM_WINDOWS 1
Jul 6, 2017
Jul 6, 2017
28
29
#elif defined(__OS2__) || defined(OS2)
# define PHYSFS_PLATFORM_OS2 1
30
#elif ((defined __MACH__) && (defined __APPLE__))
Mar 23, 2009
Mar 23, 2009
31
/* To check if iphone or not, we need to include this file */
Jun 25, 2012
Jun 25, 2012
32
33
34
# include <TargetConditionals.h>
# if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
# define PHYSFS_NO_CDROM_SUPPORT 1
Nov 2, 2008
Nov 2, 2008
35
# endif
Jun 25, 2012
Jun 25, 2012
36
37
# define PHYSFS_PLATFORM_MACOSX 1
# define PHYSFS_PLATFORM_POSIX 1
38
#elif defined(macintosh)
Mar 14, 2007
Mar 14, 2007
39
# error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
Nov 2, 2012
Nov 2, 2012
40
41
42
43
44
#elif defined(ANDROID)
# define PHYSFS_PLATFORM_LINUX 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
# define PHYSFS_NO_CDROM_SUPPORT 1
Mar 20, 2012
Mar 20, 2012
45
#elif defined(__linux)
Mar 20, 2012
Mar 20, 2012
46
47
48
# define PHYSFS_PLATFORM_LINUX 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Mar 20, 2012
Mar 20, 2012
49
#elif defined(__sun) || defined(sun)
Mar 20, 2012
Mar 20, 2012
50
51
52
# define PHYSFS_PLATFORM_SOLARIS 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Aug 24, 2013
Aug 24, 2013
53
54
55
56
57
58
#elif defined(__FreeBSD__) || defined(__DragonFly__)
# define PHYSFS_PLATFORM_FREEBSD 1
# define PHYSFS_PLATFORM_BSD 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
Mar 20, 2012
Mar 20, 2012
59
60
61
# define PHYSFS_PLATFORM_BSD 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Jul 9, 2017
Jul 9, 2017
62
63
64
65
#elif defined(__EMSCRIPTEN__)
# define PHYSFS_NO_CDROM_SUPPORT 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Aug 2, 2012
Aug 2, 2012
66
#elif defined(unix) || defined(__unix__)
Mar 20, 2012
Mar 20, 2012
67
68
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
69
70
71
72
73
#else
# error Unknown platform.
#endif
#endif /* include-once blocker. */