banan-os/ports/xash3d-fwgs/patches/mainui/0001-add-support-for-banan-...

56 lines
1.6 KiB
Diff

From 72d30e589450d1a928924f93adfaadff7618ba59 Mon Sep 17 00:00:00 2001
From: Oskari Alaranta <oskari.alaranta@bananymous.com>
Date: Thu, 31 Jul 2025 22:16:51 +0300
Subject: [PATCH] add support for banan-os
---
sdk_includes/public/build.h | 3 +++
sdk_includes/public/buildenums.h | 3 +++
2 files changed, 6 insertions(+)
diff --git a/sdk_includes/public/build.h b/sdk_includes/public/build.h
index 24fd9d5..52b6088 100644
--- a/sdk_includes/public/build.h
+++ b/sdk_includes/public/build.h
@@ -82,6 +82,7 @@ Then you can use another oneliner to query all variables:
#undef XASH_RISCV_SOFTFP
#undef XASH_SERENITY
#undef XASH_SUNOS
+#undef XASH_BANAN_OS
#undef XASH_WIN32
#undef XASH_X86
#undef XASH_NSWITCH
@@ -133,6 +134,8 @@ Then you can use another oneliner to query all variables:
#define XASH_WASI 1
#elif defined __sun__
#define XASH_SUNOS 1
+ #elif defined __banan_os__
+ #define XASH_BANAN_OS 1
#else
#error
#endif
diff --git a/sdk_includes/public/buildenums.h b/sdk_includes/public/buildenums.h
index 4dc327d..57585f7 100644
--- a/sdk_includes/public/buildenums.h
+++ b/sdk_includes/public/buildenums.h
@@ -43,6 +43,7 @@ GNU General Public License for more details.
#define PLATFORM_PSVITA 14
#define PLATFORM_WASI 15
#define PLATFORM_SUNOS 16
+#define PLATFORM_BANAN_OS 17
#if XASH_WIN32
#define XASH_PLATFORM PLATFORM_WIN32
@@ -76,6 +77,8 @@ GNU General Public License for more details.
#define XASH_PLATFORM PLATFORM_WASI
#elif XASH_SUNOS
#define XASH_PLATFORM PLATFORM_SUNOS
+#elif XASH_BANAN_OS
+ #define XASH_PLATFORM PLATFORM_BANAN_OS
#else
#error
#endif
--
2.50.1