]> 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:30 +0000 (09:30 -0500)
commitc5c792092b57687ae3ebecbe8645fa71ddb19f8c
tree17383209754f45a62ac653ed4a76cb6879d2ed62
parent6484ae5b8c4d4314f748e4d3c9a9baa5385e57c5
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