]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/gcrypt-util.h
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / src / shared / gcrypt-util.h
index 1da12a32be28b2d627bd7aacb67f31247372d26e..f08ed6052cce84012d3524497bcc93d83b6da7af 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 
-#ifdef HAVE_GCRYPT
+#if HAVE_GCRYPT
 #include <gcrypt.h>
 
 void initialize_libgcrypt(bool secmem);
@@ -31,7 +31,7 @@ int string_hashsum(const char *s, size_t len, int md_algorithm, char **out);
 #endif
 
 static inline int string_hashsum_sha224(const char *s, size_t len, char **out) {
-#ifdef HAVE_GCRYPT
+#if HAVE_GCRYPT
         return string_hashsum(s, len, GCRY_MD_SHA224, out);
 #else
         return -EOPNOTSUPP;
@@ -39,7 +39,7 @@ static inline int string_hashsum_sha224(const char *s, size_t len, char **out) {
 }
 
 static inline int string_hashsum_sha256(const char *s, size_t len, char **out) {
-#ifdef HAVE_GCRYPT
+#if HAVE_GCRYPT
         return string_hashsum(s, len, GCRY_MD_SHA256, out);
 #else
         return -EOPNOTSUPP;