From 238559e4e8d61c3162d9556efc29b5d45f325814 Mon Sep 17 00:00:00 2001 From: Dan Rosser Date: Sun, 2 Mar 2025 09:39:26 +1100 Subject: [PATCH] ofxGui fix for apple targets --- addons/ofxGui/src/ofxInputField.cpp | 2 +- addons/ofxGui/src/ofxSlider.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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