diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index b1e67982dc..069c393882 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -17,6 +17,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include #include #include @@ -1801,10 +1802,10 @@ static const float _demolition[] = { 4294967395.0f, /* 2^16 + 100 */ -4294967395.0f, HUGE, /* Big, non-inf number */ - 1.f/0.f, /* +inf */ - -1.f/0.f, /* -inf */ - -0.f/0.f, /* -nan */ - 0.f/0.f, /* nan */ + INFINITY, /* +inf */ + -INFINITY, /* -inf */ + -NAN, /* -nan */ + NAN, /* nan */ 0.0f, /* some silence to check for recovery */ }; diff --git a/msvc_extra_headers/ardourext/misc.h.input b/msvc_extra_headers/ardourext/misc.h.input index 9bcba6f327..161ed167f1 100644 --- a/msvc_extra_headers/ardourext/misc.h.input +++ b/msvc_extra_headers/ardourext/misc.h.input @@ -49,6 +49,10 @@ #define INFINITY HUGE_VAL #endif +#ifndef NAN +#define NAN _NANCODE +#endif + // File access modes copied from unistd.h #define F_OK 0 #define R_OK 4