From fc00ec1303e5312a5021081378cdead49cbe44e6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 8 Feb 2020 17:39:26 +0100 Subject: [PATCH] Fix compilation errors in a testdir created with --with-c++-tests. * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func), since it does not work any more with g++ >= 4.4. --- ChangeLog | 6 ++++++ lib/c++defs.h | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 533dc313e6..df48e889eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-02-08 Bruno Haible + + Fix compilation errors in a testdir created with --with-c++-tests. + * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func), + since it does not work any more with g++ >= 4.4. + 2020-02-08 Bruno Haible doc: Update for glibc 2.31. diff --git a/lib/c++defs.h b/lib/c++defs.h index 5d5da71cec..402cae4bd5 100644 --- a/lib/c++defs.h +++ b/lib/c++defs.h @@ -301,9 +301,6 @@ _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ "The symbol ::" #func " refers to the system function. " \ "Use " #namespace "::" #func " instead.") -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING -# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ - extern __typeof__ (func) func # else # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ _GL_EXTERN_C int _gl_cxxalias_dummy -- 2.39.5