Skip to content

Commit

Permalink
Haiku support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 5, 2008
1 parent 2e134c7 commit 43dbf3a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CREDITS.txt
Expand Up @@ -81,6 +81,9 @@ Mingw support,
General bug fixes:
Matze Braun

Haiku support:
scott mc

Bug fixes:
Jörg Walter

Expand Down
6 changes: 5 additions & 1 deletion physfs_platforms.h
Expand Up @@ -12,7 +12,11 @@
* PHYSFS_PLATFORM_UNIX on that system.
*/

#if ((defined __BEOS__) || (defined __beos__))
#if (defined __HAIKU__)
# define PHYSFS_PLATFORM_HAIKU
# define PHYSFS_PLATFORM_BEOS
# define PHYSFS_PLATFORM_POSIX
#elif ((defined __BEOS__) || (defined __beos__))
# define PHYSFS_PLATFORM_BEOS
# define PHYSFS_PLATFORM_POSIX
#elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
Expand Down
13 changes: 13 additions & 0 deletions platform/beos.cpp
Expand Up @@ -11,6 +11,18 @@

#ifdef PHYSFS_PLATFORM_BEOS

#ifdef PHYSFS_PLATFORM_HAIKU
#include <os/kernel/OS.h>
#include <os/app/Roster.h>
#include <os/storage/Volume.h>
#include <os/storage/VolumeRoster.h>
#include <os/storage/Directory.h>
#include <os/storage/Entry.h>
#include <os/storage/Path.h>
#include <os/kernel/fs_info.h>
#include <os/device/scsi.h>
#include <os/support/Locker.h>
#else
#include <be/kernel/OS.h>
#include <be/app/Roster.h>
#include <be/storage/Volume.h>
Expand All @@ -21,6 +33,7 @@
#include <be/kernel/fs_info.h>
#include <be/device/scsi.h>
#include <be/support/Locker.h>
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 43dbf3a

Please sign in to comment.