Skip to content

Commit 3dd51e3

Browse files
author
hekra
committed
fix build Qt5.7
1 parent c74f9c6 commit 3dd51e3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

inc/base/float_util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "build/build_config.h"
99

10+
#include <cmath>
1011
#include <float.h>
1112
#include <math.h>
1213

@@ -15,7 +16,7 @@ namespace base {
1516
template <typename Float>
1617
inline bool IsFinite(const Float& number) {
1718
#if defined(OS_POSIX)
18-
return isfinite(number) != 0;
19+
return std::isfinite(number) != 0;
1920
#elif defined(OS_WIN)
2021
return _finite(number) != 0;
2122
#endif

wd_build_options.gypi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'-Wall',
1212
'-W',
1313
'-Wno-unused-parameter',
14+
'-std=gnu++11',
1415
],
1516

1617
'defines': [

0 commit comments

Comments
 (0)