From a01c0e89bf336b165cf3f981a232ba2f09341764 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 14 Jul 2016 22:47:17 +0000 Subject: alignof handling git-svn-id: svn://tug.org/texlive/trunk@41705 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/gregorio/gregorio-src/src/sha1.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Build/source/texk/gregorio/gregorio-src') 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 #include -#ifdef HAVE_STDALIGN_H -#include -#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); -- cgit v1.2.3