]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/cocci-macro-file.h
migration/qemu-file: fix potential buf waste for extra buf_index adjustment
[mirror_qemu.git] / scripts / cocci-macro-file.h
index e485cdccae8e1901e9fffe0a70620eb45ab9cf78..c6bbc05ba3eada172a1370372eeb4a5c309ee5d9 100644 (file)
 #define QEMU_NORETURN __attribute__ ((__noreturn__))
 #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
 #define QEMU_SENTINEL __attribute__((sentinel))
-#define QEMU_PACKED __attribute__((gcc_struct, packed))
+
+#if defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))
+# define QEMU_PACKED __attribute__((gcc_struct, packed))
+#else
+# define QEMU_PACKED __attribute__((packed))
+#endif
 
 #define cat(x,y) x ## y
 #define cat2(x,y) cat(x,y)