diff options
author | Karl Berry <karl@freefriends.org> | 2016-07-14 22:47:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-07-14 22:47:17 +0000 |
commit | a01c0e89bf336b165cf3f981a232ba2f09341764 (patch) | |
tree | 691aa70c7b65467b01228c8ad95f7cc97566b660 /Build/source/texk/gregorio/gregorio-src | |
parent | 91457f77157828d445693ef28bc3e83482beee70 (diff) |
alignof handling
git-svn-id: svn://tug.org/texlive/trunk@41705 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/gregorio/gregorio-src')
-rw-r--r-- | Build/source/texk/gregorio/gregorio-src/src/sha1.c | 11 |
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); |