about summary refs log tree commit diff
path: root/pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-28 14:39:41 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-28 14:39:41 +0100
commitd1b54838bd6bd1c9ecaea34ec5c5b02edcf5ae1c (patch)
treed3fd312383661a733c05a8e9d91f0dc08e80f080 /pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch
parentabc198bf73e5ded6f1eebb4982596f114d1186ba (diff)
libsForQt5.libopenshot-audio: convert to patch
Diffstat (limited to 'pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch')
-rw-r--r--pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch b/pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch
new file mode 100644
index 0000000000000..c391f77dda8b7
--- /dev/null
+++ b/pkgs/applications/video/openshot-qt/undef-fpret-on-aarch64-darwin.patch
@@ -0,0 +1,13 @@
+diff --git a/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h b/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h
+index 2593790..0b5983d 100644
+--- a/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h
++++ b/JuceLibraryCode/modules/juce_core/native/juce_osx_ObjCHelpers.h
+@@ -209,7 +209,7 @@ static inline ReturnValue ObjCMsgSendSuper (struct objc_super* s, SEL sel, Param
+ typedef id (*MsgSendSuperFn) (struct objc_super*, SEL, ...);
+ static inline MsgSendSuperFn getMsgSendSuperFn() noexcept   { return (MsgSendSuperFn) (void*) objc_msgSendSuper; }
+ 
+-#if ! JUCE_IOS
++#if JUCE_INTEL && ! JUCE_IOS
+ typedef double (*MsgSendFPRetFn) (id, SEL op, ...);
+ static inline MsgSendFPRetFn getMsgSendFPRetFn() noexcept   { return (MsgSendFPRetFn) (void*) objc_msgSend_fpret; }
+ #endif