Skip to content

Commit

Permalink
Merge pull request #39 from kmolcard/macos10-compat
Browse files Browse the repository at this point in the history
Fix compilation on macOS 10
  • Loading branch information
sudara authored Dec 4, 2023
2 parents b01475f + 55630b4 commit 90cfe17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions melatonin/support/implementations.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
#define MELATONIN_BLUR_VIMAGE 1
#define MELATONIN_BLUR_VIMAGE_MACOS14 1
#include "../implementations/vImage_macOS14.h"
#else
#elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000)
// *Compiling* has to happen on macOS > 11.0 to support vImageSepConvolve_Planar8
// Once compiled, we will will check at runtime before relying on the vImage function
#define MELATONIN_BLUR_VIMAGE 1
#include "../implementations/vImage.h" // Single channel

#else
#include "../implementations/float_vector_stack_blur.h"
#endif
#elif JUCE_WINDOWS
#if defined(PAMPLEJUCE_IPP) || defined(JUCE_IPP_AVAILABLE)
Expand Down

0 comments on commit 90cfe17

Please sign in to comment.