shithub: libmujs

Download patch

ref: 066a06741cfc3f9dba4e01b38d67d79d700cae8a
parent: c596dd58c3ccb85a3b1ce75512975d6f38133cd1
author: Robin Watts <robin.watts@artifex.com>
date: Fri Jun 10 11:19:28 EDT 2016

Correct #ifdeffery for VS 2012

VS 2012 needs isnan, isfinite etc defined too. VS2015 does not.

--- a/jsi.h
+++ b/jsi.h
@@ -38,7 +38,7 @@
 	return n;
 }
 #endif
-#if _MSC_VER < 1700 /* MSVC 2012 */
+#if _MSC_VER <= 1700 /* <= MSVC 2012 */
 #define round(x) floor((x) < 0 ? (x) - 0.5 : (x) + 0.5)
 #define isnan(x) _isnan(x)
 #define isinf(x) (!_finite(x))