Use physfs_platforms.h in physfs_internal.h, to avoid repeated macro tests.

This commit is contained in:
Ryan C. Gordon 2012-03-19 02:04:27 -04:00
parent 1030e5d5ec
commit 82a6ce0abf
1 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,8 @@
#include <stdlib.h>
#include <string.h>
#include "physfs_platforms.h"
#ifdef HAVE_ASSERT_H
#include <assert.h>
#elif (!defined assert)
@ -55,7 +57,7 @@ extern "C" {
# define inline __inline
#endif
#if defined(__linux__) && !defined(_FILE_OFFSET_BITS)
#if PHYSFS_PLATFORM_LINUX && !defined(_FILE_OFFSET_BITS)
#define _FILE_OFFSET_BITS 64
#endif
@ -1039,7 +1041,7 @@ int UNPK_stat(dvoid *opaque, const char *fn, int *exists, PHYSFS_Stat *stat);
* Obviously, this isn't a function. If you need more than one char for this,
* you'll need to pull some old pieces of PhysicsFS out of revision control.
*/
#if (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
#if PHYSFS_PLATFORM_WINDOWS
#define __PHYSFS_platformDirSeparator '\\'
#else
#define __PHYSFS_platformDirSeparator '/'