summaryrefslogtreecommitdiff
path: root/msvc_extra_headers
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2016-05-03 17:30:58 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2016-05-03 17:30:58 +0100
commitdc1a2fbca78cd0350ee39c75dfb865d57074c769 (patch)
treea6bc4c948eae486e92bed1c27a5ba8f3a7834312 /msvc_extra_headers
parenta12288d9b5188c7472ace238bbf88a345415fea2 (diff)
MSVC won't compile 'const float _demolition[]' because it uses 'divide by zero' while initializing
Hopefully we can use INFINITY and NAN for the relevant initializers ?
Diffstat (limited to 'msvc_extra_headers')
-rw-r--r--msvc_extra_headers/ardourext/misc.h.input4
1 files changed, 4 insertions, 0 deletions
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