slirp: fix packed structs on MSVC
This commit is contained in:
@@ -46,8 +46,10 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))
|
||||
#define SLIRP_PACKED __attribute__((gcc_struct, packed))
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#define SLIRP_PACKED
|
||||
#elif defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))
|
||||
#define SLIRP_PACKED __attribute__((gcc_struct, packed))
|
||||
#else
|
||||
#define SLIRP_PACKED __attribute__((packed))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user