2007-03-11 23:50:53 +01:00
|
|
|
#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.
|
|
|
|
*/
|
|
|
|
|
2008-11-05 20:42:48 +01:00
|
|
|
#if (defined __HAIKU__)
|
|
|
|
# define PHYSFS_PLATFORM_HAIKU
|
|
|
|
# define PHYSFS_PLATFORM_BEOS
|
|
|
|
# define PHYSFS_PLATFORM_POSIX
|
|
|
|
#elif ((defined __BEOS__) || (defined __beos__))
|
2007-03-11 23:50:53 +01:00
|
|
|
# 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__))
|
2009-03-23 05:13:24 +01:00
|
|
|
/* To check if iphone or not, we need to include this file */
|
2008-11-02 21:19:58 +01:00
|
|
|
# include <TargetConditionals.h>
|
2009-09-06 07:04:17 +02:00
|
|
|
# if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
|
2008-11-02 21:19:58 +01:00
|
|
|
# define PHYSFS_PLATFORM_UNIX
|
|
|
|
# define PHYSFS_PLATFORM_POSIX
|
|
|
|
# define PHYSFS_NO_CDROM_SUPPORT
|
|
|
|
# else
|
|
|
|
# define PHYSFS_PLATFORM_MACOSX
|
|
|
|
# define PHYSFS_PLATFORM_POSIX
|
|
|
|
# endif
|
2007-03-11 23:50:53 +01:00
|
|
|
#elif defined(macintosh)
|
2007-03-14 08:20:59 +01:00
|
|
|
# error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
|
2007-03-11 23:50:53 +01:00
|
|
|
#elif defined(unix)
|
|
|
|
# define PHYSFS_PLATFORM_UNIX
|
|
|
|
# define PHYSFS_PLATFORM_POSIX
|
|
|
|
#else
|
|
|
|
# error Unknown platform.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* include-once blocker. */
|
|
|
|
|