aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/zexy.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/zexy.h b/src/zexy.h
index f34e8a7..757ca42 100644
--- a/src/zexy.h
+++ b/src/zexy.h
@@ -55,8 +55,11 @@
#endif
#ifdef __APPLE__
-# define sqrtf sqrt
-#endif
+# include <AvailabilityMacros.h>
+# if defined (MAC_OS_X_VERSION_10_3) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
+# define sqrtf sqrt
+# endif /* OSX-10.3 */
+#endif /* APPLE */
typedef struct _mypdlist
{