mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Fixed compiling with Visual Studio 2012 [smf]
This commit is contained in:
parent
4da6718e2d
commit
f28670c9e0
@ -44,6 +44,18 @@
|
||||
#include "drawd3d.h"
|
||||
|
||||
|
||||
// Visual Studio 2013 is the first version that supports roundf
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1800)
|
||||
|
||||
float roundf(float f)
|
||||
{
|
||||
if (f < 0)
|
||||
return ceil(f - 0.5);
|
||||
|
||||
return floor(f + 0.5);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//============================================================
|
||||
// DEBUGGING
|
||||
|
Loading…
Reference in New Issue
Block a user