diff --git a/addons/ofxGui/src/ofxInputField.cpp b/addons/ofxGui/src/ofxInputField.cpp index 4c8add5c6ef..ce2ff441554 100644 --- a/addons/ofxGui/src/ofxInputField.cpp +++ b/addons/ofxGui/src/ofxInputField.cpp @@ -806,6 +806,6 @@ template class ofxInputField; template class ofxInputField; //for some reason osx errors if this isn't defined -#if defined TARGET_OSX || defined TARGET_EMSCRIPTEN +#if defined (__APPLE__) || defined TARGET_EMSCRIPTEN template class ofxInputField::value || std::is_same::value, bool, size_t>::type>; #endif diff --git a/addons/ofxGui/src/ofxSlider.cpp b/addons/ofxGui/src/ofxSlider.cpp index e9f95d55790..3220700a899 100644 --- a/addons/ofxGui/src/ofxSlider.cpp +++ b/addons/ofxGui/src/ofxSlider.cpp @@ -378,7 +378,7 @@ template class ofxSlider; template class ofxSlider; //for some reason osx errors if this isn't defined -#if defined TARGET_OSX || defined TARGET_EMSCRIPTEN +#if defined (__APPLE__) || defined TARGET_EMSCRIPTEN template class ofxSlider::value || std::is_same::value, bool, size_t>::type>; #endif