Skip to content

Latest commit

 

History

History
84 lines (79 loc) · 3.02 KB

physfs_platforms.h

File metadata and controls

84 lines (79 loc) · 3.02 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 24, 2017
Jul 24, 2017
19
# error BeOS support was dropped since PhysicsFS 2.1. Sorry. Try Haiku!
20
#elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
Jul 24, 2017
Jul 24, 2017
21
# error PocketPC support was dropped since PhysicsFS 2.1. Sorry. Try WinRT!
Jul 24, 2017
Jul 24, 2017
22
23
#elif (defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_) /* _MSC_VER==1700 for MSVC 2012 */
# include <winapifamily.h>
Aug 2, 2017
Aug 2, 2017
24
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
Jul 24, 2017
Jul 24, 2017
25
26
27
28
29
30
# define PHYSFS_NO_CDROM_SUPPORT 1
# define PHYSFS_PLATFORM_WINRT 1
# define PHYSFS_PLATFORM_WINDOWS 1
# else
# define PHYSFS_PLATFORM_WINDOWS 1
# endif
31
#elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
Mar 20, 2012
Mar 20, 2012
32
# define PHYSFS_PLATFORM_WINDOWS 1
Jul 6, 2017
Jul 6, 2017
33
34
#elif defined(__OS2__) || defined(OS2)
# define PHYSFS_PLATFORM_OS2 1
35
#elif ((defined __MACH__) && (defined __APPLE__))
Aug 8, 2017
Aug 8, 2017
36
/* To check if iOS or not, we need to include this file */
Jun 25, 2012
Jun 25, 2012
37
38
39
# include <TargetConditionals.h>
# if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
# define PHYSFS_NO_CDROM_SUPPORT 1
Nov 2, 2008
Nov 2, 2008
40
# endif
Aug 8, 2017
Aug 8, 2017
41
# define PHYSFS_PLATFORM_APPLE 1
Jun 25, 2012
Jun 25, 2012
42
# define PHYSFS_PLATFORM_POSIX 1
43
#elif defined(macintosh)
Mar 14, 2007
Mar 14, 2007
44
# error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
Nov 2, 2012
Nov 2, 2012
45
46
47
48
49
#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
50
#elif defined(__linux)
Mar 20, 2012
Mar 20, 2012
51
52
53
# define PHYSFS_PLATFORM_LINUX 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Mar 20, 2012
Mar 20, 2012
54
#elif defined(__sun) || defined(sun)
Mar 20, 2012
Mar 20, 2012
55
56
57
# define PHYSFS_PLATFORM_SOLARIS 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Jul 13, 2017
Jul 13, 2017
58
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
Aug 24, 2013
Aug 24, 2013
59
60
61
62
63
# 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
64
65
66
# define PHYSFS_PLATFORM_BSD 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Jul 9, 2017
Jul 9, 2017
67
68
69
70
#elif defined(__EMSCRIPTEN__)
# define PHYSFS_NO_CDROM_SUPPORT 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Jul 23, 2017
Jul 23, 2017
71
#elif defined(__QNX__)
Aug 6, 2017
Aug 6, 2017
72
# define PHYSFS_NO_CDROM_SUPPORT 1 /* !!! FIXME-3.0? */
Jul 23, 2017
Jul 23, 2017
73
74
75
# define PHYSFS_PLATFORM_QNX 1
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
Aug 2, 2012
Aug 2, 2012
76
#elif defined(unix) || defined(__unix__)
Mar 20, 2012
Mar 20, 2012
77
78
# define PHYSFS_PLATFORM_UNIX 1
# define PHYSFS_PLATFORM_POSIX 1
79
80
81
82
83
#else
# error Unknown platform.
#endif
#endif /* include-once blocker. */