Skip to content

Commit 896ff9b

Browse files
committed
Fix MinGW build. Fixes #12
1 parent b7b4676 commit 896ff9b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/picobench/picobench.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// picobench v2.04
1+
// picobench v2.05
22
// https://github.com/iboB/picobench
33
//
44
// A micro microbenchmarking library in a single header file
@@ -30,6 +30,7 @@
3030
//
3131
// VERSION HISTORY
3232
//
33+
// 2.05 (2023-04-26) Fixed MinGW build
3334
// 2.04 (2023-04-12) Added CLI args to run specific benchmarks or suites
3435
// 2.03 (2023-03-21) * Added PICOBENCH_UNIQUE_SYM_SUFFIX
3536
// * Fixed several warnings
@@ -122,8 +123,8 @@
122123
# include <functional>
123124
#endif
124125

125-
#define PICOBENCH_VERSION 2.04
126-
#define PICOBENCH_VERSION_STR "2.04"
126+
#define PICOBENCH_VERSION 2.05
127+
#define PICOBENCH_VERSION_STR "2.05"
127128

128129
#if defined(PICOBENCH_DEBUG)
129130
# include <cassert>
@@ -1352,7 +1353,7 @@ class runner : public registry
13521353
auto p = line;
13531354
while (true)
13541355
{
1355-
auto q = strchr(p, ',');
1356+
const char* q = strchr(p, ',');
13561357
if (!q) q = p + strlen(p);
13571358
names.emplace_back(p, int(q - p));
13581359
if (!*q) break;

0 commit comments

Comments
 (0)