Browse Source

Fix macOS arm64 build

tags/2021-01-15
falkTX 4 years ago
parent
commit
5ef41d41ff
2 changed files with 7 additions and 13 deletions
  1. +7
    -1
      libs/juce-legacy/source/modules/juce_core/native/juce_osx_ObjCHelpers.h
  2. +0
    -12
      ports-legacy/wolpertinger/source/synth.h

+ 7
- 1
libs/juce-legacy/source/modules/juce_core/native/juce_osx_ObjCHelpers.h View File

@@ -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


+ 0
- 12
ports-legacy/wolpertinger/source/synth.h View File

@@ -12,18 +12,6 @@
template<typename T> 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:


Loading…
Cancel
Save