libstdc++: Fix -Wlong-long warning in <bits/postypes.h>
commit05b7ab86e7d70e6f71a3012b08f5704b056a69fe
authorJonathan Wakely <jwakely@redhat.com>
Tue, 1 Oct 2024 09:43:43 +0000 (1 10:43 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 2 Oct 2024 10:29:11 +0000 (2 11:29 +0100)
treeebc852b0d9acce5719601ad36346595eed96daf9
parent79ea0aab75732c26c38d4b64f1d97acedf80155a
libstdc++: Fix -Wlong-long warning in <bits/postypes.h>

For 32-bit targets __INT64_TYPE__ expands to long long, which gives a
pedwarn for C++98 mode, causing:

FAIL: 17_intro/headers/c++1998/all_pedantic_errors.cc  -std=gnu++98 (test for excess errors)
Excess errors:
.../bits/postypes.h:64: error: ISO C++ 1998 does not support 'long long' [-Wlong-long]

libstdc++-v3/ChangeLog:

* include/bits/postypes.h: Fix -Wlong-long warning.
libstdc++-v3/include/bits/postypes.h