Skip to content

Commit

Permalink
Merge pull request #111 from kazuho/kazuho/std-isnan
Browse files Browse the repository at this point in the history
fix compiler error under C++03 with `isnan`, `isinf` provided as functions
  • Loading branch information
kazuho authored Jun 24, 2018
2 parents 34b04e7 + fc62372 commit 8ba7113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ inline value::value(double n) : type_(number_type), u_() {
if (
#ifdef _MSC_VER
!_finite(n)
#elif __cplusplus >= 201103L || !(defined(isnan) && defined(isinf))
#elif __cplusplus >= 201103L
std::isnan(n) || std::isinf(n)
#else
isnan(n) || isinf(n)
Expand Down

0 comments on commit 8ba7113

Please sign in to comment.