From 44676971c7fe7d871d978696a5e6b1500ae2783a Mon Sep 17 00:00:00 2001 From: Danyal Saeed Mirza Date: Wed, 18 Jul 2018 17:05:20 +0500 Subject: [PATCH] Remove definition of unused function 'round' Not only is it ununsed, it brings up an error of redifinition of 'double round(double)' in cmath/math.h. (reporting this on VS 2013) Consider removing it altogether? --- src/permutohedral.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/permutohedral.cpp b/src/permutohedral.cpp index 4eb9171..14dc63d 100755 --- a/src/permutohedral.cpp +++ b/src/permutohedral.cpp @@ -28,11 +28,11 @@ #include "permutohedral.h" #include -#ifdef WIN32 -inline int round(double X) { - return int(X+.5); -} -#endif +// #ifdef WIN32 +// inline int round(double X) { +// return int(X+.5); +// } +// #endif #ifdef __SSE__ // SSE Permutoheral lattice