mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
From b9dcd0b355909011e35ed00ecab17a68cc008dca Mon Sep 17 00:00:00 2001
|
|
From: Leorize <alaviss@users.noreply.github.com>
|
|
Date: Mon, 8 Jan 2018 14:16:07 +0700
|
|
Subject: PGFplatform: add Haiku support
|
|
|
|
|
|
diff --git a/include/PGFplatform.h b/include/PGFplatform.h
|
|
index 22634ac..e54097b 100644
|
|
--- a/include/PGFplatform.h
|
|
+++ b/include/PGFplatform.h
|
|
@@ -352,6 +352,25 @@ inline OSError SetFPos(HANDLE hFile, int posMode, INT64 posOff) {
|
|
#endif // __NetBSD__ or __OpenBSD__ or __FreeBSD__
|
|
|
|
|
|
+//-------------------------------------------------------------------------------
|
|
+// HAIKU
|
|
+//-------------------------------------------------------------------------------
|
|
+#ifdef __HAIKU__
|
|
+#ifndef __POSIX__
|
|
+#define __POSIX__
|
|
+#endif
|
|
+
|
|
+#ifndef off64_t
|
|
+#define off64_t off_t
|
|
+#endif
|
|
+
|
|
+#ifndef lseek64
|
|
+#define lseek64 lseek
|
|
+#endif
|
|
+
|
|
+#endif // __HAIKU__
|
|
+
|
|
+
|
|
//-------------------------------------------------------------------------------
|
|
// POSIX *NIXes
|
|
//-------------------------------------------------------------------------------
|
|
--
|
|
2.15.0
|
|
|