Skip to content

Commit 0e79ba4

Browse files
driver1998sthibaul
authored andcommitted
QEMU_PACKED: Remove gcc_struct attribute in Windows non x86 targets
This attribute is for x86 only, and it generates an warning on ARM64 Clang/MinGW targets. Signed-off-by: Cao Jiaxi <driver1998@foxmail.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
1 parent 59a1b1f commit 0e79ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <netinet/in.h>
4444
#endif
4545

46-
#if defined(_WIN32)
46+
#if defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))
4747
#define SLIRP_PACKED __attribute__((gcc_struct, packed))
4848
#else
4949
#define SLIRP_PACKED __attribute__((packed))

0 commit comments

Comments
 (0)