* fix vc2015 compilation (use libretro-common's handling of missing msvc roundf)

This commit is contained in:
zeromus 2016-05-23 03:33:42 -05:00
parent fba722d450
commit 57a7a4eb7f
2 changed files with 2 additions and 1 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@
/msvc/Debug /msvc/Debug
/msvc/*.suo /msvc/*.suo
/msvc/*.user /msvc/*.user
/msvc/x64
/msvc/.vs/msvc-2010/v14/*.suo

View File

@ -33,7 +33,6 @@ typedef uint64_t uint64;
#define MDFN_NOWARN_UNUSED __attribute__((unused)) #define MDFN_NOWARN_UNUSED __attribute__((unused))
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
#define roundf(in) (in >= 0.0f ? floorf(in + 0.5f) : ceilf(in - 0.5f))
#define INLINE inline #define INLINE inline
#define NO_INLINE #define NO_INLINE
#define MDFN_LIKELY(n) ((n) != 0) #define MDFN_LIKELY(n) ((n) != 0)