From ea2b4fb4935627e4dea48f193eeb0019155a3abe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 May 2022 09:48:08 +0200 Subject: Use our own implementation of C++14 threads on MinGW --- tests/fdstream/driver.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/fdstream') diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx index 254a03e..0b66574 100644 --- a/tests/fdstream/driver.cxx +++ b/tests/fdstream/driver.cxx @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -20,6 +19,12 @@ #include #include +#ifndef LIBBUTL_MINGW_STDTHREAD +# include +#else +# include +#endif + #include #include #include @@ -115,6 +120,12 @@ read_time (const path& p, const T& s, size_t n) int main (int argc, const char* argv[]) { +#ifndef LIBBUTL_MINGW_STDTHREAD + using std::thread; +#else + using mingw_stdthread::thread; +#endif + bool v (false); bool child (false); -- cgit v1.1