diff --git a/libc3/sha1.h b/libc3/sha1.h
index a9efe38..fec2858 100644
--- a/libc3/sha1.h
+++ b/libc3/sha1.h
@@ -6,14 +6,11 @@
#else
# if HAVE_SHA_H
# include <sha.h>
+# define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
+# define SHA1Final SHA1_Final
+# define SHA1Init SHA1_Init
+# define SHA1Update SHA1_Update
# endif
#endif
-#if HAVE_SHA_H
-#define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
-#define SHA1Final SHA1_Final
-#define SHA1Init SHA1_Init
-#define SHA1Update SHA1_Update
-#endif
-
#endif /* LIBC3_SHA1_H */