Haiku support.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 05 Nov 2008 14:42:48 -0500
changeset 947 b0c91495af9b
parent 946 67149c11ded9
child 948 923323444178
Haiku support.
CREDITS.txt
physfs_platforms.h
platform/beos.cpp
--- a/CREDITS.txt	Mon Nov 03 15:55:29 2008 -0500
+++ b/CREDITS.txt	Wed Nov 05 14:42:48 2008 -0500
@@ -81,6 +81,9 @@
 General bug fixes:
     Matze Braun
 
+Haiku support:
+    scott mc
+
 Bug fixes:
     Jörg Walter
 
--- a/physfs_platforms.h	Mon Nov 03 15:55:29 2008 -0500
+++ b/physfs_platforms.h	Wed Nov 05 14:42:48 2008 -0500
@@ -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)
--- a/platform/beos.cpp	Mon Nov 03 15:55:29 2008 -0500
+++ b/platform/beos.cpp	Wed Nov 05 14:42:48 2008 -0500
@@ -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>
@@ -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>