]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
combine preprocessor directives to reduce nesting of conditions in fat-ppc.c
authorMaamoun TK <maamoun.tk@googlemail.com>
Mon, 21 Dec 2020 15:00:23 +0000 (16:00 +0100)
committerMaamoun TK <maamoun.tk@googlemail.com>
Mon, 21 Dec 2020 15:00:23 +0000 (16:00 +0100)
fat-ppc.c

index 365d4d9bcf13bca9a570e4f88842f7f3e43c8105..c7f0d11a6d89a51d02333e558f880543d5931fdd 100644 (file)
--- a/fat-ppc.c
+++ b/fat-ppc.c
 
 #if defined(_AIX)
 # include <sys/systemcfg.h>
-#elif defined(__linux__)
-# if defined(__GLIBC__) && defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
-#  define USE_GETAUXVAL 1
-#  include <asm/cputable.h>
-#  include <sys/auxv.h>
-# endif
+#elif defined(__linux__) && defined(__GLIBC__) && \
+  defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
+# define USE_GETAUXVAL 1
+# include <asm/cputable.h>
+# include <sys/auxv.h>
 #elif defined(__FreeBSD__)
 # include <machine/cpu.h>
 # ifdef PPC_FEATURE2_HAS_VEC_CRYPTO
@@ -119,7 +118,7 @@ get_ppc_features (struct ppc_features *features)
 #else
       unsigned long hwcap = 0;
       unsigned long hwcap2 = 0;
-# if defined(__linux__) && USE_GETAUXVAL
+# if USE_GETAUXVAL
       hwcap = getauxval(AT_HWCAP);
       hwcap2 = getauxval(AT_HWCAP2);
 # elif defined(__FreeBSD__)