mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Define round() only on WIN32 platform; fix #3741
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
#define NDIV(x,y) (-(-((x)+1)/(y))-1)
|
||||
|
||||
#if _MSC_VER < 1800
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1800
|
||||
double round(double x) {
|
||||
if (x >= 0.0) {
|
||||
return (double)((int)(x + 0.5));
|
||||
|
||||
Reference in New Issue
Block a user