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
This commit is contained in:
avolkov
2009-12-20 20:58:55 +00:00
parent 3f203f6b72
commit dafd5e415d
+1 -1
View File
@@ -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)