File tree Expand file tree Collapse file tree 4 files changed +3
-21
lines changed
subprojects/libvhost-user Expand file tree Collapse file tree 4 files changed +3
-21
lines changed Original file line number Diff line number Diff line change 22
22
#define QEMU_EXTERN_C extern
23
23
#endif
24
24
25
- #if defined(_WIN32 ) && (defined(__x86_64__ ) || defined(__i386__ ))
26
- # define QEMU_PACKED __attribute__((gcc_struct, packed))
27
- #else
28
- # define QEMU_PACKED __attribute__((packed))
29
- #endif
30
-
25
+ #define QEMU_PACKED __attribute__((packed))
31
26
#define QEMU_ALIGNED (X ) __attribute__((aligned(X)))
32
27
33
28
#ifndef glue
Original file line number Diff line number Diff line change @@ -377,11 +377,6 @@ elif host_os == 'sunos'
377
377
qemu_common_flags += ' -D__EXTENSIONS__'
378
378
elif host_os == ' haiku'
379
379
qemu_common_flags += [' -DB_USE_POSITIVE_POSIX_ERRORS' , ' -D_BSD_SOURCE' , ' -fPIC' ]
380
- elif host_os == ' windows'
381
- if not compiler.compiles(' struct x { int y; } __attribute__((gcc_struct));' ,
382
- args : ' -Werror' )
383
- error (' Your compiler does not support __attribute__((gcc_struct)) - please use GCC instead of Clang' )
384
- endif
385
380
endif
386
381
387
382
# Choose instruction set (currently x86-only)
Original file line number Diff line number Diff line change 23
23
#define G_GNUC_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
24
24
#define G_GNUC_NULL_TERMINATED __attribute__((sentinel))
25
25
26
- #if defined(_WIN32 ) && (defined(__x86_64__ ) || defined(__i386__ ))
27
- # define QEMU_PACKED __attribute__((gcc_struct, packed))
28
- #else
29
- # define QEMU_PACKED __attribute__((packed))
30
- #endif
26
+ #define QEMU_PACKED __attribute__((packed))
31
27
32
28
#define cat (x ,y ) x ## y
33
29
#define cat2 (x ,y ) cat(x,y)
Original file line number Diff line number Diff line change @@ -186,11 +186,7 @@ typedef struct VhostUserShared {
186
186
unsigned char uuid [UUID_LEN ];
187
187
} VhostUserShared ;
188
188
189
- #if defined(_WIN32 ) && (defined(__x86_64__ ) || defined(__i386__ ))
190
- # define VU_PACKED __attribute__((gcc_struct, packed))
191
- #else
192
- # define VU_PACKED __attribute__((packed))
193
- #endif
189
+ #define VU_PACKED __attribute__((packed))
194
190
195
191
typedef struct VhostUserMsg {
196
192
int request ;
You can’t perform that action at this time.
0 commit comments