From 785026799544e5a0388e0e7769b4b5e1990ae512 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 27 Oct 2025 08:28:23 +0100 Subject: [PATCH 18/48] better guard for OBJC_API_VERSION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as gcc doesn’t define it --- include/wx/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index 7e2f294ce2..6a57668673 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -2856,7 +2856,7 @@ typedef WX_UIPasteboard WXOSXPasteboard; #if defined(__OBJC__) -#if OBJC_API_VERSION >= 2 +#if defined( OBJC_API_VERSION ) && OBJC_API_VERSION >= 2 #define wxOBJC_FOR_LOOP(var, collection) \ for (var in collection) \ -- 2.24.3 (Apple Git-128)