Explorar o código

Patched to compile on Mac OS X.

Ryan C. Gordon %!s(int64=19) %!d(string=hai) anos
pai
achega
a600edf8ab
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      platform/unix.c

+ 2 - 2
platform/unix.c

@@ -330,7 +330,7 @@ void __PHYSFS_platformTimeslice(void)
 } /* __PHYSFS_platformTimeslice */
 } /* __PHYSFS_platformTimeslice */
 
 
 
 
-#if PHYSFS_PLATFORM_MACOSX
+#ifdef PHYSFS_PLATFORM_MACOSX
 /* 
 /* 
  * This function is only for OSX. The problem is that Apple's applications
  * This function is only for OSX. The problem is that Apple's applications
  * can actually be directory structures with the actual executable nested
  * 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);
     BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
     strcpy(retval, resolved_path);
     strcpy(retval, resolved_path);
 
 
-#if defined(__MACH__) && defined(__APPLE__)
+#ifdef PHYSFS_PLATFORM_MACOSX
     stripAppleBundle(retval);
     stripAppleBundle(retval);
 #endif /* defined __MACH__ && defined __APPLE__ */
 #endif /* defined __MACH__ && defined __APPLE__ */