shithub: aubio

Download patch

ref: b8ea001bd01d9a0c76403415b1e3304319597b41
parent: e27b6a1f6b27f25b5dd2324da8172c706da2ccd7
author: Paul Brossier <piem@piem.org>
date: Sun May 15 13:25:37 EDT 2016

src/aubio_priv.h: use _isnan on windows msvc 9 to avoid linking error

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -254,6 +254,11 @@
 #define IMAG      cimagf
 #endif
 
+/* avoid unresolved symbol with msvc 9 */
+#if defined(_MSC_VER) && (_MSC_VER < 1900)
+#define isnan _isnan
+#endif
+
 /* handy shortcuts */
 #define DB2LIN(g) (POW(10.0,(g)*0.05f))
 #define LIN2DB(v) (20.0*LOG10(v))