aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-07-13 08:01:45 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-07-13 08:01:45 +0000
commit215b7f2747b8b8d8c4a4c7afd36acce031c8a02c (patch)
tree5ce828b4bc1f9addadd597fd501c496d0c0f76bc /src
parentf02872df11af51531363a953d56ccb98bef79536 (diff)
incorporated jamie's os-X magic for sqrtf
svn path=/trunk/externals/zexy/; revision=3340
Diffstat (limited to 'src')
-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
{