diff options
author | der richter <der.richter@gmx.de> | 2024-02-26 23:11:42 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-02-27 14:04:30 +0100 |
commit | c7ff037fddf3bff2faa2f157163bca3207be2e2c (patch) | |
tree | 095817259dbea5cad1f7d889578af7ff2fcbad37 /osdep/macosx_application.m | |
parent | c15307244fc54315c18c69c4ce5234803165f304 (diff) | |
download | mpv-c7ff037fddf3bff2faa2f157163bca3207be2e2c.tar.bz2 mpv-c7ff037fddf3bff2faa2f157163bca3207be2e2c.tar.xz |
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.
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r-- | osdep/macosx_application.m | 2 |
1 files changed, 1 insertions, 1 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 |