From a600edf8abae9f96a00caf63c89093b457d67ef3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 14 Mar 2007 06:30:20 +0000 Subject: [PATCH] Patched to compile on Mac OS X. --- platform/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/unix.c b/platform/unix.c index 5a5630d..8111bd1 100644 --- a/platform/unix.c +++ b/platform/unix.c @@ -330,7 +330,7 @@ void __PHYSFS_platformTimeslice(void) } /* __PHYSFS_platformTimeslice */ -#if PHYSFS_PLATFORM_MACOSX +#ifdef PHYSFS_PLATFORM_MACOSX /* * This function is only for OSX. The problem is that Apple's applications * can actually be directory structures with the actual executable nested @@ -442,7 +442,7 @@ char *__PHYSFS_platformRealPath(const char *path) BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL); strcpy(retval, resolved_path); -#if defined(__MACH__) && defined(__APPLE__) +#ifdef PHYSFS_PLATFORM_MACOSX stripAppleBundle(retval); #endif /* defined __MACH__ && defined __APPLE__ */