summaryrefslogtreecommitdiff
path: root/Build/source/texk/gregorio/gregorio-src/src/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/gregorio/gregorio-src/src/sha1.c')
-rw-r--r--Build/source/texk/gregorio/gregorio-src/src/sha1.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/Build/source/texk/gregorio/gregorio-src/src/sha1.c b/Build/source/texk/gregorio/gregorio-src/src/sha1.c
index 15433d9076b..9ebd6d28c8a 100644
--- a/Build/source/texk/gregorio/gregorio-src/src/sha1.c
+++ b/Build/source/texk/gregorio/gregorio-src/src/sha1.c
@@ -37,15 +37,6 @@
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STDALIGN_H
-#include <stdalign.h>
-#ifdef __clang__
-#pragma clang diagnostic ignored "-Wc11-extensions"
-#endif
-#else
-#define alignof(x) sizeof(x)
-#endif
-
#ifdef WORDS_BIGENDIAN
#define SWAP(n) (n)
#else
@@ -167,7 +158,7 @@ void sha1_process_bytes(const void *buffer, size_t len, struct sha1_ctx *ctx)
if (len >= 64) {
/* architecture and data-specific; LCOV_EXCL_START */
#if !_STRING_ARCH_unaligned
-#define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0)
+#define UNALIGNED_P(p) ((uintptr_t) (p) % ALIGNOF_UINT32_T != 0)
if (UNALIGNED_P(buffer)) {
while (len > 64) {
sha1_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx);