mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 01:21:47 +00:00
We need the roundf macro for MSVC versions lower than 1800
This commit is contained in:
parent
57981b2990
commit
5fe9f8dc11
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user