Skip to content

Commit

Permalink
Fix MinGW build. Fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Apr 25, 2023
1 parent b7b4676 commit 896ff9b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/picobench/picobench.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// picobench v2.04
// picobench v2.05
// https://github.com/iboB/picobench
//
// A micro microbenchmarking library in a single header file
Expand Down Expand Up @@ -30,6 +30,7 @@
//
// VERSION HISTORY
//
// 2.05 (2023-04-26) Fixed MinGW build
// 2.04 (2023-04-12) Added CLI args to run specific benchmarks or suites
// 2.03 (2023-03-21) * Added PICOBENCH_UNIQUE_SYM_SUFFIX
// * Fixed several warnings
Expand Down Expand Up @@ -122,8 +123,8 @@
# include <functional>
#endif

#define PICOBENCH_VERSION 2.04
#define PICOBENCH_VERSION_STR "2.04"
#define PICOBENCH_VERSION 2.05
#define PICOBENCH_VERSION_STR "2.05"

#if defined(PICOBENCH_DEBUG)
# include <cassert>
Expand Down Expand Up @@ -1352,7 +1353,7 @@ class runner : public registry
auto p = line;
while (true)
{
auto q = strchr(p, ',');
const char* q = strchr(p, ',');
if (!q) q = p + strlen(p);
names.emplace_back(p, int(q - p));
if (!*q) break;
Expand Down

0 comments on commit 896ff9b

Please sign in to comment.