Skip to content

Commit 34b0150

Browse files
committed
Include required header and use from std namespace
This fixes #156 by not depending on indirect inclusion and additionally uses iswprint from the namespace where C++ requires it to be defined, instead of where a lot of implementations (also) define it.
1 parent 4021375 commit 34b0150

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

HISTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ None yet
77
### Bugfixes
88

99
* Allow running all GTest cases without filter separation ([#144](https://github.com/cucumber/cucumber-cpp/pull/144) Giel van Schijndel)
10+
* Fix QNX build by depending on standard C++ instead of specific implementation ([#156](https://github.com/cucumber/cucumber-cpp/issues/156) Giel van Schijndel)
1011

1112
## [0.4](https://github.com/cucumber/cucumber-cpp/compare/v0.3.1...v0.4) (31 March 2017)
1213

include/json_spirit/json_spirit_writer_template.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "json_spirit_value.h"
1010

1111
#include <cassert>
12+
#include <cwctype>
1213
#include <sstream>
1314
#include <iomanip>
1415

@@ -77,7 +78,7 @@ namespace json_spirit
7778

7879
const wint_t unsigned_c( ( c >= 0 ) ? c : 256 + c );
7980

80-
if( iswprint( unsigned_c ) )
81+
if( std::iswprint( unsigned_c ) )
8182
{
8283
result += c;
8384
}

0 commit comments

Comments
 (0)