Skip to content

Commit 793ed7d

Browse files
committed
GCC headers don't define std::isspace() without a second argument and rely on it being a macro instead, I guess
1 parent 13c88a4 commit 793ed7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/_TestingInternals/Versions.cpp

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

1313
#include <algorithm>
1414
#include <cctype>
15+
#include <iterator>
1516
#include <mutex>
1617

1718
const char *swt_getTestingLibraryVersion(void) {
@@ -30,7 +31,7 @@ const char *swt_getTestingLibraryVersion(void) {
3031
// Trim any trailing whitespace.
3132
static std::once_flag once;
3233
std::call_once(once, [] {
33-
auto i = std::find_if(std::begin(version), std::end(version), std::isspace);
34+
auto i = std::find_if(std::begin(version), std::end(version), isspace);
3435
if (i != std::end(version)) {
3536
*i = '\0';
3637
}

0 commit comments

Comments
 (0)