diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-06-12 10:31:25 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-06-12 10:33:52 -0700 |
commit | ab182c624868fcc0ed97597db669911099d4bd28 (patch) | |
tree | e9daecdac6ee59ab21768ed529cfdf6890d96122 /src/gmalloc.c | |
parent | 37f8a470d068c7dbb77fa515f09a9153b59aad35 (diff) | |
download | emacs-ab182c624868fcc0ed97597db669911099d4bd28.tar.gz emacs-ab182c624868fcc0ed97597db669911099d4bd28.tar.bz2 emacs-ab182c624868fcc0ed97597db669911099d4bd28.zip |
New macro GNUC_PREREQ for GCC version
* src/conf_post.h (GNUC_PREREQ): New macro.
Change uses of __GNUC_MINOR__ and __GNUC_PATCHLEVEL__ to use this
macro instead, for clarity and consistency.
(PRINTF_ARCHETYPE): New macro. Define it to __gnu_printf__ only
if glibc, since non-GNU platforms don’t necessarily support GNU
printf formats.
(ATTRIBUTE_FORMAT_PRINTF): Use it.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r-- | src/gmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c index d795c13f616..483d05c5c61 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -44,7 +44,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. #endif #ifdef HAVE_MALLOC_H -# if 4 < __GNUC__ + (2 <= __GNUC_MINOR__) +# if GNUC_PREREQ (4, 2, 0) # pragma GCC diagnostic ignored "-Wdeprecated-declarations" # endif # include <malloc.h> |