From b1dd4ffc6c73dd1ca38004da3d50f5e53df5632b Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 27 Jun 2013 23:04:11 +0000 Subject: [PATCH] MSVC build fix (looks like the compiler version shipped with VS2013 has nearbyintf now...) git-svn-id: https://svn.eduke32.com/eduke32@3900 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index 46a34c650..cd0cec8c1 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -127,6 +127,8 @@ #include # define inline __inline # define longlong(x) x##i64 + +#if _MSC_VER < 1800 static inline float nearbyintf(float x) { uint32_t w1, w2; @@ -141,6 +143,7 @@ static inline float nearbyintf(float x) fldcw w1 } } +#endif #else # define longlong(x) x##ll #endif