From 4f622de03be449de2bdaccf48ab0d394a6393e57 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Thu, 9 Oct 2014 00:41:10 +0300 Subject: [PATCH] Add DUK_F_MSVC_FULL_VER placeholder --- src/duk_features.h.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/duk_features.h.in b/src/duk_features.h.in index 2223a429..b027ef15 100644 --- a/src/duk_features.h.in +++ b/src/duk_features.h.in @@ -249,7 +249,14 @@ static __inline__ unsigned long long duk_rdtsc(void) { * BOOST_MSVC_FULL_VER in http://www.boost.org/doc/libs/1_52_0/boost/config/compiler/visualc.hpp */ #define DUK_F_MSVC +#if defined(_MSC_FULL_VER) +#if (_MSC_FULL_VER > 100000000) +#define DUK_F_MSVC_FULL_VER _MSC_FULL_VER +#else +#define DUK_F_MSCV_FULL_VER (_MSC_FULL_VER * 10) +#endif #endif +#endif /* _MSC_VER */ /* MinGW */ #if defined(__MINGW32__) || defined(__MINGW64__)