aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-11-10 18:01:10 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-11-10 18:01:10 +0000
commit9dd67c7311b245bb138545f097b60b07bb4976b5 (patch)
tree6e473e70b57964f4e0b39be1afbee318c5b1ac7b
parent0a00fa0d27971967797f2d93398af129b7471847 (diff)
disabled warnings for functions deprecated in M$ studio 2005
svn path=/trunk/externals/zexy/; revision=8978
-rw-r--r--src/zexy.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/zexy.h b/src/zexy.h
index d83dfe6..dfc4945 100644
--- a/src/zexy.h
+++ b/src/zexy.h
@@ -66,13 +66,20 @@
# pragma warning( disable : 4018 )
# pragma warning( disable : 4244 )
# pragma warning( disable : 4305 )
+# pragma warning( disable : 4996) /* deprecated functions */
#endif
#ifdef __WIN32__
# define HEARTSYMBOL 3
# define STATIC_INLINE
-# define sqrtf sqrt
-# define fabsf fabs
+
+# ifndef sqrtf
+# define sqrtf sqrt
+# endif /* sqrtf */
+# ifndef fabsf
+# define fabsf fabs
+# endif /* fabsf */
+
#else
# define HEARTSYMBOL 169
# define STATIC_INLINE static