r834 - trunk/platform

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Mar 14 02:30:20 EDT 2007


Author: icculus
Date: 2007-03-14 02:30:20 -0400 (Wed, 14 Mar 2007)
New Revision: 834

Modified:
   trunk/platform/unix.c
Log:
Patched to compile on Mac OS X.


Modified: trunk/platform/unix.c
===================================================================
--- trunk/platform/unix.c	2007-03-12 03:41:20 UTC (rev 833)
+++ trunk/platform/unix.c	2007-03-14 06:30:20 UTC (rev 834)
@@ -330,7 +330,7 @@
 } /* __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 @@
     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__ */
     




More information about the physfs-commits mailing list