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.
This commit is contained in:
der richter
2024-02-27 14:04:30 +01:00
parent c15307244f
commit c7ff037fdd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -38,7 +38,7 @@
#include "config.h"
#if HAVE_MACOS_COCOA_CB
#if HAVE_SWIFT
#include "osdep/macOS_swift.h"
#endif