iphlpapi: MacOS struct sockaddr is 4 byte aligned on 64 bit.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
22cdc4e3da
commit
594dfe6875
|
@ -145,7 +145,7 @@
|
|||
|
||||
#ifndef ROUNDUP
|
||||
#define ROUNDUP(a) \
|
||||
((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long))
|
||||
((a) > 0 ? (1 + (((a) - 1) | (sizeof(int) - 1))) : sizeof(int))
|
||||
#endif
|
||||
#ifndef ADVANCE
|
||||
#define ADVANCE(x, n) (x += ROUNDUP(((struct sockaddr *)n)->sa_len))
|
||||
|
|
Loading…
Reference in New Issue