diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-06-28 04:18:55 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-06-28 04:18:55 +0200 |
commit | 7b65dbd4ebade81d504cfe5e681292a58ad1fdf0 (patch) | |
tree | 7f538708782712f993180dd6363e46bf0cfe8eaa /gnulib-m4/gnulib-common.m4 | |
parent | f7c3580478601e3a77dc864e5a1d91c1edad5187 (diff) |
New upstream version 0.9.10upstream/0.9.10
Diffstat (limited to 'gnulib-m4/gnulib-common.m4')
-rw-r--r-- | gnulib-m4/gnulib-common.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnulib-m4/gnulib-common.m4 b/gnulib-m4/gnulib-common.m4 index de65f6b8..736e4210 100644 --- a/gnulib-m4/gnulib-common.m4 +++ b/gnulib-m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 38 +# gnulib-common.m4 serial 39 dnl Copyright (C) 2007-2018 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -72,6 +72,13 @@ AC_DEFUN([gl_COMMON_BODY], [ #else # define _GL_ATTRIBUTE_CONST /* empty */ #endif + +/* The __malloc__ attribute was added in gcc 3. */ +#if 3 <= __GNUC__ +# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) +#else +# define _GL_ATTRIBUTE_MALLOC /* empty */ +#endif ]) dnl Preparation for running test programs: dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not |