public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6750] libstdc++: Include <stddef.h> for size_t and ptrdiff_t [PR104123]
@ 2022-01-19 17:40 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-01-19 17:40 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:f5c50748f361841c30d95c1743f040f2f8ec831c

commit r12-6750-gf5c50748f361841c30d95c1743f040f2f8ec831c
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Jan 19 17:39:00 2022 +0000

    libstdc++: Include <stddef.h> for size_t and ptrdiff_t [PR104123]
    
    libstdc++-v3/ChangeLog:
    
            PR libstdc++/104123
            * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Include
            <stddef.h>.

Diff:
---
 libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/c_compat.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/c_compat.cc b/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/c_compat.cc
index 98c1102a974..80d2e150647 100644
--- a/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/c_compat.cc
+++ b/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/c_compat.cc
@@ -92,12 +92,13 @@ static_assert(is_same<atomic_uint_fast64_t, _Atomic(uint_fast64_t)>);
 #endif
 static_assert(is_same<atomic_intptr_t,  _Atomic(intptr_t)>);
 static_assert(is_same<atomic_uintptr_t, _Atomic(uintptr_t)>);
-static_assert(is_same<atomic_size_t,    _Atomic(size_t)>);
-static_assert(is_same<atomic_ptrdiff_t, _Atomic(ptrdiff_t)>);
 #ifdef _GLIBCXX_USE_C99_STDINT_TR1
 static_assert(is_same<atomic_intmax_t,  _Atomic(intmax_t)>);
 static_assert(is_same<atomic_uintmax_t, _Atomic(uintmax_t)>);
 #endif
+#include <stddef.h>
+static_assert(is_same<atomic_size_t,    _Atomic(size_t)>);
+static_assert(is_same<atomic_ptrdiff_t, _Atomic(ptrdiff_t)>);
 
 static_assert( requires (::atomic_int* i, int* e) {
   ::atomic_is_lock_free(i);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-19 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 17:40 [gcc r12-6750] libstdc++: Include <stddef.h> for size_t and ptrdiff_t [PR104123] Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).