Skip to content

Commit

Permalink
Do not include the contents of threading.cpp when compiling with C++1…
Browse files Browse the repository at this point in the history
…1 or newer.
  • Loading branch information
ch4rr0 committed Sep 14, 2021
1 parent 29772a4 commit 5a4d538
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tinythread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ freely, subject to the following restrictions:
distribution.
*/

#if (__cplusplus < 201103L)

#include <exception>
#include "tinythread.h"

Expand Down Expand Up @@ -301,3 +303,5 @@ thread::id this_thread::get_id()
}

}

#endif

0 comments on commit 5a4d538

Please sign in to comment.