From 5fe9f8dc115e154714a9ef8e8d5586c783bd9bd6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 23 Mar 2016 03:40:47 +0100 Subject: [PATCH] We need the roundf macro for MSVC versions lower than 1800 --- libretro-common/include/compat/msvc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/include/compat/msvc.h b/libretro-common/include/compat/msvc.h index 9c575921df..57ca291bc4 100644 --- a/libretro-common/include/compat/msvc.h +++ b/libretro-common/include/compat/msvc.h @@ -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