Skip to content
Permalink
Browse files
Use physfs_platforms.h in physfs_internal.h, to avoid repeated macro …
…tests.
  • Loading branch information
icculus committed Mar 19, 2012
1 parent 1030e5d commit 82a6ce0abf31b435172dec6f861c95ae6cfaedc9
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/physfs_internal.h
@@ -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 '/'

0 comments on commit 82a6ce0

Please sign in to comment.