From c7ff037fddf3bff2faa2f157163bca3207be2e2c Mon Sep 17 00:00:00 2001 From: der richter Date: Mon, 26 Feb 2024 23:11:42 +0100 Subject: [PATCH] build: fix build when disabling cocoa-cb the swift obj-c bridging header is only included when cocoa-cb is enabled. cocoa-cb is not the only swift feature anymore and disabling cocoa-cb leads to a runtime error that specific swift classes could not be found. include the swift obj-c bridging header in the case swift features are enabled. --- osdep/macosx_application.m | 2 +- osdep/macosx_events.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index c9ccd48033..2ef597c0fc 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -33,7 +33,7 @@ #if HAVE_MACOS_TOUCHBAR #import "osdep/macosx_touchbar.h" #endif -#if HAVE_MACOS_COCOA_CB +#if HAVE_SWIFT #include "osdep/macOS_swift.h" #endif diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index 1b041cdb09..e7f738f2b2 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -38,7 +38,7 @@ #include "config.h" -#if HAVE_MACOS_COCOA_CB +#if HAVE_SWIFT #include "osdep/macOS_swift.h" #endif