diff --git a/src/compat.h b/src/compat.h index e0ffdd4..e2cb734 100644 --- a/src/compat.h +++ b/src/compat.h @@ -18,12 +18,10 @@ #ifndef _COMPAT_H_ #define _COMPAT_H_ -#ifdef __GNUC__ -#define PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__)) -#endif - #ifdef _MSC_VER #define PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) ) +#else +#define PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__)) #endif #ifdef __cplusplus