diff --git a/libs/juce-legacy/source/modules/juce_core/native/juce_osx_ObjCHelpers.h b/libs/juce-legacy/source/modules/juce_core/native/juce_osx_ObjCHelpers.h index 0702946c..7c1d57ec 100644 --- a/libs/juce-legacy/source/modules/juce_core/native/juce_osx_ObjCHelpers.h +++ b/libs/juce-legacy/source/modules/juce_core/native/juce_osx_ObjCHelpers.h @@ -99,7 +99,13 @@ static inline MsgSendSuperFn getMsgSendSuperFn() noexcept { return (MsgSendSup #if ! JUCE_IOS typedef double (*MsgSendFPRetFn) (id, SEL op, ...); -static inline MsgSendFPRetFn getMsgSendFPRetFn() noexcept { return (MsgSendFPRetFn) (void*) objc_msgSend_fpret; } +static inline MsgSendFPRetFn getMsgSendFPRetFn() noexcept { return (MsgSendFPRetFn) (void*) + #if JUCE_ARM + objc_msgSend; + #else + objc_msgSend_fpret; + #endif +} #endif #endif diff --git a/ports-legacy/wolpertinger/source/synth.h b/ports-legacy/wolpertinger/source/synth.h index 7f73ce74..83ca15ce 100644 --- a/ports-legacy/wolpertinger/source/synth.h +++ b/ports-legacy/wolpertinger/source/synth.h @@ -12,18 +12,6 @@ template T sqr(T v) { return v*v; } -inline uint64_t rdtsc() -{ - union - { - uint64_t val; - struct { uint32_t lo; uint32_t hi; }; - } ret; - asm ("rdtsc\n": "=a" (ret.lo), "=d" (ret.hi)); - return ret.val; -} - - class wolpSound: public SynthesiserSound { public: