aboutsummaryrefslogtreecommitdiff
path: root/src/StormPort.h
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2021-03-31 08:06:04 +0200
committerLadislav Zezula <zezula@volny.cz>2021-03-31 08:06:04 +0200
commitc8063655be321191533952792351188d8ccbab87 (patch)
tree2f798f48295dbcef43d1cd252811eb36864a267e /src/StormPort.h
parentb8c83a5cd67d5535f56bf42223a3c13e2a630026 (diff)
* Removed the Haiku-specific code
* The Haiku platform is now under STORMLIB_MAC
Diffstat (limited to 'src/StormPort.h')
-rw-r--r--src/StormPort.h11
1 files changed, 8 insertions, 3 deletions
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 <sys/types.h>
@@ -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