From dafd5e415d58e8c29f1d5437b32b3b61d854a09c Mon Sep 17 00:00:00 2001 From: avolkov Date: Sun, 20 Dec 2009 20:58:55 +0000 Subject: [PATCH] Get rid of MSVC 'unnamed type definition in parentheses' warning in md5 git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3460 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/libs/md5/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/libs/md5/md5.c b/sc2/src/libs/md5/md5.c index 28ffe2e7a..d57b3dfe8 100644 --- a/sc2/src/libs/md5/md5.c +++ b/sc2/src/libs/md5/md5.c @@ -244,7 +244,7 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx) if (len >= 64) { #if !_STRING_ARCH_unaligned -# define alignof(type) offsetof (struct { char c; type x; }, x) +# define alignof(type) offsetof (struct align_ ## type { char c; type x; }, x) # define UNALIGNED_P(p) (((size_t) p) % alignof (uint32_t) != 0) if (UNALIGNED_P (buffer)) while (len > 64)