From 5a4d5382d4b139d2fe40d5e701a831ad030db46c Mon Sep 17 00:00:00 2001 From: Rone Charles Date: Mon, 13 Sep 2021 20:02:51 -0400 Subject: [PATCH] Do not include the contents of threading.cpp when compiling with C++11 or newer. --- tinythread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tinythread.cpp b/tinythread.cpp index 690eceea..22ba2296 100644 --- a/tinythread.cpp +++ b/tinythread.cpp @@ -21,6 +21,8 @@ freely, subject to the following restrictions: distribution. */ +#if (__cplusplus < 201103L) + #include #include "tinythread.h" @@ -301,3 +303,5 @@ thread::id this_thread::get_id() } } + +#endif