]> Savannah Git Hosting - gnulib.git/commitdiff
flexmember: update comment
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jan 2025 07:24:26 +0000 (23:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jan 2025 07:24:26 +0000 (23:24 -0800)
lib/flexmember.h

index 0168af0eca9d28005fb000541680eb7ef73e10ac..b4d86c29fb5496a9ed3bd87c2d56cf42265e4194 100644 (file)
 #include <stddef.h>
 
 /* Nonzero multiple of alignment of TYPE, suitable for FLEXSIZEOF below.
-   On older platforms without _Alignof, use a pessimistic bound that is
+   If _Alignof might not exist or might not work correctly on
+   structs with flexible array members, use a pessimistic bound that is
    safe in practice even if FLEXIBLE_ARRAY_MEMBER is 1.
-   On newer platforms, use _Alignof to get a tighter bound.  */
+   Otherwise, use _Alignof to get a tighter bound.  */
 
 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 || defined _Alignof
 # define FLEXALIGNOF(type) (sizeof (type) & ~ (sizeof (type) - 1))