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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user