* m4/environ.m4 (gt_CHECK_VAR_DECL): Use a typedef'ed type, not an
anonymous type.
+2021-06-27 Bruno Haible <bruno@clisp.org>
+
+ environ: Fix wrong autoconf test result in C++ mode.
+ * m4/environ.m4 (gt_CHECK_VAR_DECL): Use a typedef'ed type, not an
+ anonymous type.
+
2021-06-22 Egor Ignatov <egori@altlinux.org> (tiny change)
regex: fix undefined behavior
-# environ.m4 serial 7
+# environ.m4 serial 8
dnl Copyright (C) 2001-2004, 2006-2021 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[$1
- extern struct { int foo; } $2;]],
+ typedef struct { int foo; } foo_t;
+ extern foo_t $2;]],
[[$2.foo = 1;]])],
[gt_cv_var=no],
[gt_cv_var=yes])])