From 1356b14a00cb48c5e18750c76f24dd7e1b112cbd Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 12 Jan 2024 01:58:28 +0100 Subject: [PATCH] lib/defines.h: Don't wrap #undef in #ifdef ISO C guarantees that #undef is a no-op if there is no such macro. C11::6.10.3.5p2: > A preprocessing directive of the form > > # undef identifier new-line > > causes the specified identifier no longer to be defined as a macro > name. It is ignored if the specified identifier is not currently > defined as a macro name. Link: Signed-off-by: Alejandro Colomar --- lib/defines.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/defines.h b/lib/defines.h index 361f89c65..93543e858 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -186,12 +186,9 @@ #define SHADOW_SP_FLAG_UNSET ((unsigned long)-1) #ifdef WITH_AUDIT -#ifdef __u8 /* in case we use pam < 0.80 */ +/* in case we use pam < 0.80 */ #undef __u8 -#endif -#ifdef __u32 #undef __u32 -#endif #include #endif