libstdc++: Fix <stop_token> to compile without gthreads
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Aug 2020 15:16:21 +0000 (16:16 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 Aug 2020 15:16:21 +0000 (16:16 +0100)
commit35e5294c4b779f8fc24fdc86464f999867332995
treed4eea7286c05c275e55e0ef6d11723068128fcf2
parent5bbb1f3000c57fd4d95969b30fa0e35be6d54ffb
libstdc++: Fix <stop_token> to compile without gthreads

libstdc++-v3/ChangeLog:

* include/std/stop_token: Check _GLIBCXX_HAS_GTHREADS using
#ifdef instead of #if.
(stop_token::_S_yield()): Check _GLIBCXX_HAS_GTHREADS before
using __gthread_yield.
libstdc++-v3/include/std/stop_token