packing for GCC

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

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

Loading…
Cancel
Save