Skip to content

Commit

Permalink
Split out Mac OS X code from unix.c and added some Carbon-specific co…
Browse files Browse the repository at this point in the history
…de...

 moved some stuff around and implemented a few things in BeOS and POSIX bits
 to accomodate this.
  • Loading branch information
icculus committed Mar 21, 2007
1 parent 03fe5bb commit 075e676
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 271 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -117,6 +117,7 @@ SET(PHYSFS_SRCS
platform/pocketpc.c
platform/posix.c
platform/unix.c
platform/macosx.c
platform/windows.c
archivers/dir.c
archivers/grp.c
Expand Down
1 change: 0 additions & 1 deletion physfs_platforms.h
Expand Up @@ -23,7 +23,6 @@
# define PHYSFS_PLATFORM_OS2
#elif ((defined __MACH__) && (defined __APPLE__))
# define PHYSFS_PLATFORM_MACOSX
# define PHYSFS_PLATFORM_UNIX
# define PHYSFS_PLATFORM_POSIX
#elif defined(macintosh)
# error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
Expand Down
11 changes: 7 additions & 4 deletions platform/beos.cpp
Expand Up @@ -30,9 +30,6 @@
#include "physfs_internal.h"


const char *__PHYSFS_platformDirSeparator = "/";


int __PHYSFS_platformInit(void)
{
return(1); /* always succeed. */
Expand Down Expand Up @@ -158,7 +155,7 @@ static team_id getTeamID(void)
thread_id tid = find_thread(NULL);
get_thread_info(tid, &info);
return(info.team);
} /* getMyTeamID */
} /* getTeamID */


char *__PHYSFS_platformCalcBaseDir(const char *argv0)
Expand Down Expand Up @@ -201,6 +198,12 @@ char *__PHYSFS_platformRealPath(const char *path)
} /* __PHYSFS_platformRealPath */


char *__PHYSFS_platformCurrentDir(void)
{
return(__PHYSFS_platformRealPath(".")); /* let BPath sort it out. */
} /* __PHYSFS_platformCurrentDir */


/* !!! FIXME: semaphores are not mutexes... */
void *__PHYSFS_platformCreateMutex(void)
{
Expand Down

0 comments on commit 075e676

Please sign in to comment.