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
This commit is contained in:
terminx 2013-06-27 23:04:11 +00:00
parent 767d123590
commit b1dd4ffc6c

View file

@ -127,6 +127,8 @@
#include <direct.h> #include <direct.h>
# define inline __inline # define inline __inline
# define longlong(x) x##i64 # define longlong(x) x##i64
#if _MSC_VER < 1800
static inline float nearbyintf(float x) static inline float nearbyintf(float x)
{ {
uint32_t w1, w2; uint32_t w1, w2;
@ -141,6 +143,7 @@ static inline float nearbyintf(float x)
fldcw w1 fldcw w1
} }
} }
#endif
#else #else
# define longlong(x) x##ll # define longlong(x) x##ll
#endif #endif