Skip to content
Commit 2337e04e authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

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: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent e0dc827b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment