packing for GCC

master
Avril 5 years ago
parent ba810e82d4
commit a4d142cf97
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -28,7 +28,13 @@ typedef enum {
#define _SI_HEADER_CHECK 0xbeefbeefabad1dealu
typedef struct {
#ifdef __GNUC__
#define __pack __attribute__((packed))
#else
#define __pack
#endif
typedef struct __pack {
union {
si_type type;
uint32_t __pad;

Loading…
Cancel
Save