From 118f1573cfd05a68bf0e81f6e1cc646c5fb08179 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 26 Oct 2003 16:57:01 +0000 Subject: [PATCH] Fixes for proper WAVEFORMATEX handling. --- avilib-0.6.10/avilib.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/avilib-0.6.10/avilib.h b/avilib-0.6.10/avilib.h index c48611d1a..f46c9806f 100644 --- a/avilib-0.6.10/avilib.h +++ b/avilib-0.6.10/avilib.h @@ -162,7 +162,11 @@ typedef struct uint32_t bi_clr_important; } alBITMAPINFOHEADER; -#pragma pack(2) +#if __GNUC__ == 2 +#pragma pack(1) +#else +#pragma pack(push,1) +#endif typedef struct { @@ -175,7 +179,11 @@ typedef struct uint16_t cb_size; } alWAVEFORMATEX; +#if __GNUC__ == 2 #pragma pack(4) +#else +#pragma pack(pop) +#endif typedef struct {