Feature #1327 ยป 0043-gnulib-common.m4-Update-to-serial-109.patch
dependencies/m4/gnulib-common.m4 | ||
---|---|---|
# gnulib-common.m4
|
||
# serial 108
|
||
# serial 109
|
||
dnl Copyright (C) 2007-2025 Free Software Foundation, Inc.
|
||
dnl This file is free software; the Free Software Foundation
|
||
dnl gives unlimited permission to copy and/or distribute it,
|
||
... | ... | |
AH_VERBATIM([0witness],
|
||
[/* Witness that <config.h> has been included. */
|
||
#define _GL_CONFIG_H_INCLUDED 1
|
||
])
|
||
dnl Avoid warnings from gcc -Wtrailing-whitespace.
|
||
dnl This is a temporary workaround until Autoconf fixes it.
|
||
dnl Test case:
|
||
dnl empty1=; empty2=; AC_DEFINE_UNQUOTED([FOO], [$empty1$empty2], [...])
|
||
dnl should produce "#define FOO /**/", not "#define FOO ".
|
||
AH_TOP([#if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
|
||
# pragma GCC diagnostic push
|
||
# pragma GCC diagnostic ignored "-Wtrailing-whitespace"
|
||
#endif
|
||
])
|
||
AH_BOTTOM([#if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
|
||
# pragma GCC diagnostic pop
|
||
#endif
|
||
])
|
||
AH_VERBATIM([_GL_GNUC_PREREQ],
|
||
[/* True if the compiler says it groks GNU C version MAJOR.MINOR.
|
||
... | ... | |
# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
|
||
# else
|
||
# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
|
||
/* The following lines list the first GCC version that supports the attribute.
|
||
Although the lines are not used in GCC 5 and later (as GCC 5 introduced
|
||
__has_attribute support), list GCC versions 5+ anyway for completeness. */
|
||
# define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3)
|
||
# define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2)
|
||
# define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3)
|
||
... | ... | |
# define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3)
|
||
# define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7)
|
||
# define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96)
|
||
# define _GL_ATTR_reproducible 0 /* not yet supported, as of GCC 14 */
|
||
# define _GL_ATTR_reproducible _GL_GNUC_PREREQ (15, 1)
|
||
# define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9)
|
||
# define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0)
|
||
# define _GL_ATTR_unsequenced 0 /* not yet supported, as of GCC 14 */
|
||
# define _GL_ATTR_unsequenced _GL_GNUC_PREREQ (15, 1)
|
||
# define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7)
|
||
# define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
|
||
# endif
|