From: Paul Brossier Date: Sun, 15 May 2016 15:25:37 +0000 (+0200) Subject: src/aubio_priv.h: use _isnan on windows msvc 9 to avoid linking error X-Git-Tag: 0.4.4~300^2~27 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=b8ea001bd01d9a0c76403415b1e3304319597b41 src/aubio_priv.h: use _isnan on windows msvc 9 to avoid linking error --- diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 982b5fc0..530edc9b 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -254,6 +254,11 @@ typedef enum { #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))