Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now compiles everything whether we need it or not, removing whole fil…
…es with #ifdefs...this will make it easier to "embed" this library in other projects or use a different build system: just push everything through the compiler with preprocessor defines for the parts you want/need...platform modules are determined automatically without the build system needing to intervene, so you just have to #define the archivers, etc that you want.
- Loading branch information
Showing
11 changed files
with
144 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#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 __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__)) | ||
# define PHYSFS_PLATFORM_MACOSX | ||
# define PHYSFS_PLATFORM_UNIX | ||
# define PHYSFS_PLATFORM_POSIX | ||
#elif defined(macintosh) | ||
# define PHYSFS_PLATFORM_MACCLASSIC | ||
#elif defined(unix) | ||
# define PHYSFS_PLATFORM_UNIX | ||
# define PHYSFS_PLATFORM_POSIX | ||
#else | ||
# error Unknown platform. | ||
#endif | ||
|
||
#endif /* include-once blocker. */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.