mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
From 9f0839f6e9abdaf1533ae5f0e2752ce40f5be487 Mon Sep 17 00:00:00 2001
|
|
From: robxnano <89391914+robxnano@users.noreply.github.com>
|
|
Date: Sun, 12 Feb 2023 15:08:24 +0000
|
|
Subject: [PATCH] Haiku: Only include SupportDefs.h on x86_gcc2
|
|
|
|
---
|
|
ebml/c/libebml_t.h | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/ebml/c/libebml_t.h b/ebml/c/libebml_t.h
|
|
index b124369..a8853f9 100644
|
|
--- a/ebml/c/libebml_t.h
|
|
+++ b/ebml/c/libebml_t.h
|
|
@@ -72,7 +72,7 @@ extern "C" {
|
|
typedef uint16_t uint16;
|
|
typedef uint8_t uint8;
|
|
# endif // __GNUC__
|
|
-#elif defined(__BEOS__) || defined(__HAIKU__)
|
|
+#elif defined(__BEOS__) || (defined(__HAIKU__) && __GNUC__ == 2)
|
|
#include <SupportDefs.h>
|
|
#elif defined(DJGPP) /* SL : DJGPP doesn't support POSIX types ???? */
|
|
typedef signed long long int64;
|
|
@@ -98,7 +98,7 @@ extern "C" {
|
|
typedef uint32_t uint32;
|
|
typedef uint16_t uint16;
|
|
typedef uint8_t uint8;
|
|
-#elif defined(__BEOS__) || defined(__HAIKU__)
|
|
+#elif defined(__BEOS__) || (defined(__HAIKU__) && __GNUC__ == 2)
|
|
# include <support/SupportDefs.h>
|
|
#else // anything else (Linux, BSD, ...)
|
|
# include <inttypes.h>
|
|
--
|
|
2.39.1
|
|
|