From 9007e10a0fc94190404c6a988f7d52d162901940 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 5 May 2022 15:36:33 -0700 Subject: Gnulib update via admin/merge-gnulib --- lib/stdlib.in.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/stdlib.in.h') diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index d52c2f79638..a86643c3ca3 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -184,7 +184,11 @@ _GL_WARN_ON_USE (_Exit, "_Exit is unportable - " # undef free # define free rpl_free # endif +# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) +_GL_FUNCDECL_RPL (free, void, (void *ptr) throw ()); +# else _GL_FUNCDECL_RPL (free, void, (void *ptr)); +# endif _GL_CXXALIAS_RPL (free, void, (void *ptr)); # else _GL_CXXALIAS_SYS (free, void, (void *ptr)); -- cgit v1.2.3