From c8063655be321191533952792351188d8ccbab87 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Wed, 31 Mar 2021 08:06:04 +0200 Subject: * Removed the Haiku-specific code * The Haiku platform is now under STORMLIB_MAC --- src/StormPort.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/StormPort.h') diff --git a/src/StormPort.h b/src/StormPort.h index aa5a52d..064e514 100644 --- a/src/StormPort.h +++ b/src/StormPort.h @@ -106,6 +106,10 @@ #endif +//----------------------------------------------------------------------------- +// Defines for other platforms. Please, if you add a platform that is compatible +// with either Linux or Mac, define STORMLIB_LINUX or STORMLIB_MAC, respectively + #if !defined(STORMLIB_PLATFORM_DEFINED) && defined(__HAIKU__) #include @@ -126,8 +130,9 @@ #define STORMLIB_LITTLE_ENDIAN #endif + #define STORMLIB_MAC // Use Mac compatible code #define STORMLIB_HAIKU - #define STORMLIB_PLATFORM_DEFINED // The platform is known now + #define STORMLIB_PLATFORM_DEFINED // The platform is known now #endif @@ -228,7 +233,7 @@ #endif // !STORMLIB_WINDOWS // 64-bit calls are supplied by "normal" calls on Mac -#if defined(STORMLIB_MAC) || defined(STORMLIB_HAIKU) +#if defined(STORMLIB_MAC) #define stat64 stat #define fstat64 fstat #define lseek64 lseek @@ -238,7 +243,7 @@ #endif // Platform-specific error codes for UNIX-based platforms -#if defined(STORMLIB_MAC) || defined(STORMLIB_LINUX) || defined(STORMLIB_HAIKU) +#if defined(STORMLIB_MAC) || defined(STORMLIB_LINUX) #define ERROR_SUCCESS 0 #define ERROR_FILE_NOT_FOUND ENOENT #define ERROR_ACCESS_DENIED EPERM -- cgit v1.2.3