File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,11 @@ SET(QGIS_CORE_SRCS
327
327
geometry/qgswkbtypes.cpp
328
328
)
329
329
330
+ CHECK_CXX_SOURCE_COMPILES ("#include <cmath>\n int main() { double d = std::round (0.3); return 0; }\n " HAVE_STD_ROUND )
331
+ IF (HAVE_STD_ROUND )
332
+ ADD_DEFINITIONS (-DHAVE_STD_ROUND )
333
+ ENDIF (HAVE_STD_ROUND )
334
+
330
335
FILE (GLOB JSON_HELP_FILES "${CMAKE_SOURCE_DIR} /resources/function_help/json/*" )
331
336
STRING (REPLACE "$" "$$" JSON_HELP_FILES "${JSON_HELP_FILES} " )
332
337
STRING (REPLACE "\( " "\\ (" JSON_HELP_FILES "${JSON_HELP_FILES} " )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ email : marco.hugentobler at sourcepole dot com
49
49
return r; \
50
50
}
51
51
52
- #if defined(_MSC_VER) && (_MSC_VER < 1800)
52
+ #ifndef HAVE_STD_ROUND
53
53
namespace std
54
54
{
55
55
double round ( double d )
You can’t perform that action at this time.
0 commit comments