]> code.delx.au - gnu-emacs/commit
New macro GNUC_PREREQ for GCC version
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 12 Jun 2016 17:31:25 +0000 (10:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 12 Jun 2016 17:33:52 +0000 (10:33 -0700)
commitab182c624868fcc0ed97597db669911099d4bd28
treee9daecdac6ee59ab21768ed529cfdf6890d96122
parent37f8a470d068c7dbb77fa515f09a9153b59aad35
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.
src/bytecode.c
src/conf_post.h
src/emacsgtkfixed.c
src/frame.h
src/gmalloc.c
src/lisp.h
src/process.c