From 57bdb729e1708ac6e732915a42373a67f46c55af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sun, 17 Mar 2024 03:24:59 -0400
Subject: [PATCH] Add a few more PLATFORM_DESC values

---
 src/xpdev/genwrap.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h
index b1e614be9f..40ba16e2e2 100644
--- a/src/xpdev/genwrap.h
+++ b/src/xpdev/genwrap.h
@@ -163,6 +163,15 @@ extern "C" {
 	#define PLATFORM_DESC	"QNX"
 #elif defined(__unix__)
 	#define PLATFORM_DESC	"Unix"
+#elif defined(__APPLE__)
+	#include <TargetConditionals.h>
+	#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
+		#define PLATFORM_DESC "iOS"
+	#elif TARGET_OS_MAC
+		#define PLATFORM_DESC "macOS"
+	#else
+		#define PLATFORM_DESC "Apple"
+	#endif
 #elif defined(__HAIKU__)
 	#define PLATFORM_DESC	"Haiku"
 #else
-- 
GitLab