libstdc++: Avoid "__lockable" name defined as macro by newlib
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Jun 2021 10:05:51 +0000 (11:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 23 Jun 2021 10:05:51 +0000 (11:05 +0100)
commit75404109dce57d2f8dac0f90808010233928418f
tree882b5fd416fc1f5c37e6bf9ee5c923bb284c77cc
parentda13e4ebebb07a47d5fb50eab8893f8fe38683df
libstdc++: Avoid "__lockable" name defined as macro by newlib

libstdc++-v3/ChangeLog:

* include/std/mutex (__detail::__try_lock_impl): Rename
parameter to avoid clashing with newlib's __lockable macro.
(try_lock): Add 'inline' specifier.
* testsuite/17_intro/names.cc: Add check for __lockable.
* testsuite/30_threads/try_lock/5.cc: Add options for pthreads.
libstdc++-v3/include/std/mutex
libstdc++-v3/testsuite/17_intro/names.cc
libstdc++-v3/testsuite/30_threads/try_lock/5.cc