ref: e7314780c63546179a1f0a139b5ca706567b0bf1
parent: 7bab97a7d86415598ae7b18cf693c22f54de7fb6
author: Ray Johnston <[email protected]>
date: Sat Jul 19 14:42:30 EDT 2014
Fix compilation problem on VS 2013
--- a/jsi.h
+++ b/jsi.h
@@ -20,6 +20,7 @@
#define inline __inline
#define snprintf _snprintf
#define vsnprintf _vsnprintf
+#if _MSC_VER < 1800
#define round(x) floor((x) < 0 ? (x) - 0.5 : (x) + 0.5)
#define isnan(x) _isnan(x)
#define isinf(x) (!_finite(x))
@@ -27,6 +28,7 @@
static __inline int signbit(double x) {union{double d;__int64 i;}u;u.d=x;return u.i>>63;}
#define INFINITY (DBL_MAX+DBL_MAX)
#define NAN (INFINITY-INFINITY)
+#endif /* old MSVC */
#endif
#define nelem(a) (sizeof (a) / sizeof (a)[0])