mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
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:
parent
767d123590
commit
b1dd4ffc6c
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,8 @@
|
|||
#include <direct.h>
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue