From d470791ade45fcabd685478fddaca367745339a4 Mon Sep 17 00:00:00 2001 From: WillisMedwell Date: Tue, 6 Feb 2024 22:09:28 +1100 Subject: [PATCH] Marked: "stringziller.h" as extern "C" --- benchmark/BenchSimd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmark/BenchSimd.cpp b/benchmark/BenchSimd.cpp index b4f8b90..55163b1 100644 --- a/benchmark/BenchSimd.cpp +++ b/benchmark/BenchSimd.cpp @@ -1,8 +1,3 @@ - -#ifndef EMSCRIPTEN -#include "stringzilla.h" -#endif - #include "Utily/Utily.hpp" #include @@ -12,6 +7,12 @@ #include #include +#ifndef EMSCRIPTEN +extern "C" { +#include "stringzilla.h" +} +#endif + #if 1 auto all_a(size_t max) -> std::string { @@ -68,7 +69,6 @@ static void BM_Uty_find_first_of_char(benchmark::State& state) { } BENCHMARK(BM_Uty_find_first_of_char); - static void BM_Std_find_first_of_chars(benchmark::State& state) { const auto data = std::to_array({ 'z', 'o', 'n' }); for (auto _ : state) {