From 49ebada089aca8520dea071725c6072b22cdde3d Mon Sep 17 00:00:00 2001
From: Fred Wright <fw@fwright.net>
Date: Thu, 24 Oct 2024 17:09:45 -0700
Subject: [PATCH] Add convenience flag for 64-bit checks.

---
 include/MacportsLegacySupport.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/MacportsLegacySupport.h b/include/MacportsLegacySupport.h
index ec26370..9ac8b2e 100644
--- a/include/MacportsLegacySupport.h
+++ b/include/MacportsLegacySupport.h
@@ -44,6 +44,13 @@
 #define __MPLS_APPLE_I386__            0
 #endif
 
+/* True for 64-bit build */
+#if defined(__LP64__) && __LP64__
+#define __MPLS_64BIT 1
+#else
+#define __MPLS_64BIT 0
+#endif
+
 /*
  * More concise and more comprehensive target OS definition, to simplify
  * many conditionals.
-- 
GitLab