mirror of
https://github.com/rcornwell/sims.git
synced 2026-01-11 23:52:48 +00:00
SCP: Updated to current.
This commit is contained in:
parent
5a27d75811
commit
7f93c2b052
15
sim_defs.h
15
sim_defs.h
@ -315,6 +315,21 @@ typedef uint32 t_addr;
|
||||
#define SIM_NOINLINE
|
||||
#endif
|
||||
|
||||
/* Packed structure support */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define PACKED_BEGIN __pragma( pack(push, 1) )
|
||||
# define PACKED_END __pragma( pack(pop) )
|
||||
#else
|
||||
# define PACKED_BEGIN
|
||||
#if defined(_WIN32)
|
||||
# define PACKED_END __attribute__((gcc_struct, packed))
|
||||
#else
|
||||
# define PACKED_END __attribute__((packed))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Storage class modifier for weak link definition for sim_vm_init() */
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
||||
@ -62,15 +62,12 @@ typedef uint32_t n_long; /* long as received from the net */
|
||||
#ifdef _MSC_VER
|
||||
# define PACKED_BEGIN __pragma( pack(push, 1) )
|
||||
# define PACKED_END __pragma( pack(pop) )
|
||||
# define QEMU_PACKED
|
||||
#else
|
||||
# define PACKED_BEGIN
|
||||
#if defined(_WIN32)
|
||||
# define PACKED_END __attribute__((gcc_struct, packed))
|
||||
# define QEMU_PACKED __attribute__((gcc_struct, packed))
|
||||
#else
|
||||
# define PACKED_END __attribute__((packed))
|
||||
# define QEMU_PACKED __attribute__((packed))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user