diff options
Diffstat (limited to 'C/Ppmd.h')
-rwxr-xr-x | C/Ppmd.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* Ppmd.h -- PPMD codec common code -2010-03-12 : Igor Pavlov : Public domain +2011-01-27 : Igor Pavlov : Public domain This code is based on PPMd var.H (2001): Dmitry Shkarin : Public domain */ #ifndef __PPMD_H @@ -29,6 +29,9 @@ EXTERN_C_BEGIN #define PPMD_N4 ((128 + 3 - 1 * PPMD_N1 - 2 * PPMD_N2 - 3 * PPMD_N3) / 4) #define PPMD_NUM_INDEXES (PPMD_N1 + PPMD_N2 + PPMD_N3 + PPMD_N4) +#pragma pack(push, 1) +/* Most compilers works OK here even without #pragma pack(push, 1), but some GCC compilers need it. */ + /* SEE-contexts for PPM-contexts with masked symbols */ typedef struct { @@ -48,6 +51,8 @@ typedef struct UInt16 SuccessorHigh; } CPpmd_State; +#pragma pack(pop) + typedef #ifdef PPMD_32BIT CPpmd_State * |