Define round() only on WIN32 platform; fix #3741

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-07-13 00:09:31 +09:00
parent 7fa9321c18
commit 70e99d6b57
+1 -1
View File
@@ -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));