diff --git a/CREDITS.txt b/CREDITS.txt index 38d7dd6..868bd3e 100644 --- a/CREDITS.txt +++ b/CREDITS.txt @@ -81,6 +81,9 @@ Mingw support, General bug fixes: Matze Braun +Haiku support: + scott mc + Bug fixes: Jörg Walter diff --git a/physfs_platforms.h b/physfs_platforms.h index 6079399..df4fe48 100644 --- a/physfs_platforms.h +++ b/physfs_platforms.h @@ -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) diff --git a/platform/beos.cpp b/platform/beos.cpp index aac27eb..1e35f29 100644 --- a/platform/beos.cpp +++ b/platform/beos.cpp @@ -11,6 +11,18 @@ #ifdef PHYSFS_PLATFORM_BEOS +#ifdef PHYSFS_PLATFORM_HAIKU +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#else #include #include #include @@ -21,6 +33,7 @@ #include #include #include +#endif #include #include