--- libcdio-5cd2f07/include/cdio/types.h.orig 2012-09-15 07:41:29 +0400 +++ libcdio-5cd2f07/include/cdio/types.h 2012-09-15 08:01:44 +0400 @@ -151,7 +151,7 @@ #define GNUC_PACKED #endif /* !__GNUC__ */ -#if defined(__GNUC__) +#if defined(__GNUC__) && !defined(_WIN32) /* for GCC we try to use GNUC_PACKED */ # define PRAGMA_BEGIN_PACKED # define PRAGMA_END_PACKED --- libcdio-5cd2f07/include/cdio/types.h.orig 2012-09-15 08:10:58 +0400 +++ libcdio-5cd2f07/include/cdio/types.h 2012-09-15 08:29:26 +0400 @@ -139,8 +139,13 @@ __attribute__((const)) #define GNUC_UNUSED \ __attribute__((unused)) +#if !defined(__MINGW32__) #define GNUC_PACKED \ __attribute__((packed)) +#else +#define GNUC_PACKED \ + __attribute__((gcc_struct)) +#endif #else /* !__GNUC__ */ #define GNUC_PRINTF( format_idx, arg_idx ) #define GNUC_SCANF( format_idx, arg_idx )