From e5d8b27254760d0858e71756ef19ba1a566b9250 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Mar 2014 17:20:55 +0000 Subject: [PATCH] yet another fix --- source/backend/plugin/JucePlugin.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/backend/plugin/JucePlugin.cpp b/source/backend/plugin/JucePlugin.cpp index f0bff22e2..518384d6c 100644 --- a/source/backend/plugin/JucePlugin.cpp +++ b/source/backend/plugin/JucePlugin.cpp @@ -20,6 +20,23 @@ #ifdef HAVE_JUCE +#if defined(CARLA_OS_MAC) +/* + * Missing functions in OSX. + */ +namespace std { +inline float +fmin(float __x, float __y) +{ return __builtin_fminf(__x, __y); } +inline float +fmax(float __x, float __y) +{ return __builtin_fmaxf(__x, __y); } +inline float +rint(float __x) +{ return __builtin_rintf(__x); } +} +#endif + #include "CarlaBackendUtils.hpp" #include "JucePluginWindow.hpp"