Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
revert 3daa57f and f51d1fb (followup ff43a5d)
  • Loading branch information
jef-n committed Oct 13, 2015
1 parent 9cd5eed commit 2021736
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/core/CMakeLists.txt
Expand Up @@ -327,12 +327,6 @@ SET(QGIS_CORE_SRCS
geometry/qgswkbtypes.cpp
)

INCLUDE(CheckCXXSourceCompiles)
CHECK_CXX_SOURCE_COMPILES("#include <cmath>\nint main() { double d = std::round (0.3); return 0; }\n" HAVE_STD_ROUND)
IF(HAVE_STD_ROUND)
ADD_DEFINITIONS(-DHAVE_STD_ROUND)
ENDIF(HAVE_STD_ROUND)

FILE(GLOB JSON_HELP_FILES "${CMAKE_SOURCE_DIR}/resources/function_help/json/*")
STRING(REPLACE "$" "$$" JSON_HELP_FILES "${JSON_HELP_FILES}")
STRING(REPLACE "\(" "\\(" JSON_HELP_FILES "${JSON_HELP_FILES}")
Expand Down
9 changes: 0 additions & 9 deletions src/core/geometry/qgsgeos.cpp
Expand Up @@ -49,15 +49,6 @@ email : marco.hugentobler at sourcepole dot com
return r; \
}

#ifndef HAVE_STD_ROUND
namespace std
{
double round( double d )
{
return d < 0.0 ? ceil( d - 0.5 ) : floor( d + 0.5 );
}
}
#endif

static void throwGEOSException( const char *fmt, ... )
{
Expand Down

0 comments on commit 2021736

Please sign in to comment.