[patch] Reimplement GNU threads library on native Windows
Jonathan Wakely
jwakely@redhat.com
Tue Jul 2 12:02:00 GMT 2019
On 02/07/19 12:56 +0100, Jonathan Wakely wrote:
>On 02/07/19 11:54 +0200, Eric Botcazou wrote:
>>>Yes there are definitely still references to C++0x elsewhere in
>>>libstdc++, especially in the testsuite, but let's not add new ones.
>>
>>It's libgcc though, not libstdc++. And it's a bit inconvenient to have c++0x
>>on the one hand (gthr.h) and c++11 on the other hand (gthr-win32-thread.c); in
>>other words, consistency matters too.
>
>Then I think we go with the attached patch to rename everything. This
>could break out-of-tree ports that define __GTHREADS_CXX0X, if there
>are any. We could consider making gthr.h do this after including
>gthr-default.h:
>
>#if defined __GTHREADS_CXX0X && ! defined __GTHREADS_CXX11
># warning "Define __GTHREADS_CXX11 instead of __GTHREADS_CXX0X"
># define __GTHREADS_CXX11 1
>#endif
And with the patch this time ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1261 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190702/3166da66/attachment.bin>
More information about the Libstdc++
mailing list