We need the roundf macro for MSVC versions lower than 1800

This commit is contained in:
twinaphex 2016-03-23 03:40:47 +01:00
parent 57981b2990
commit 5fe9f8dc11

View File

@ -86,7 +86,8 @@ typedef int ssize_t;
#pragma warning(disable : 4723)
#pragma warning(disable : 4996)
#if _MSC_VER < 1200
/* roundf is available since MSVC 2013 */
#if _MSC_VER < 1800
#define roundf(in) (in >= 0.0f ? floorf(in + 0.5f) : ceilf(in - 0.5f))
#endif