]> git.ipfire.org Git - thirdparty/glibc.git/commit
cdefs: Limit definition of fortification macros
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 2 Feb 2023 12:49:02 +0000 (07:49 -0500)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 2 Feb 2023 14:30:09 +0000 (09:30 -0500)
commitae045ed16b351038f66fcabbab7b4670a7381ab5
treec7c35e24ee59c8a3e80063627e40e3290655bf50
parent6bcd5d8e3668d52388a6e0580611749f93e6871f
cdefs: Limit definition of fortification macros

Define the __glibc_fortify and other macros only when __FORTIFY_LEVEL >
0.  This has the effect of not defining these macros on older C90
compilers that do not have support for variable length argument lists.

Also trim off the trailing backslashes from the definition of
__glibc_fortify and __glibc_fortify_n macros.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
(cherry picked from commit 2337e04e21ba6040926ec871e403533f77043c40)
misc/sys/cdefs.h