/**************************************************************************** * This file is part of PPMd project * * Written and distributed to public domain by Dmitry Shkarin 1997, * * 1999-2000 * * Contents: interface to memory allocation routines * ****************************************************************************/ #if !defined(_SUBALLOC_H_) #define _SUBALLOC_H_ #if defined(__GNUC__) && defined(ALLOW_MISALIGNED) #define RARPPM_PACK_ATTR … #else #define RARPPM_PACK_ATTR #endif /* defined(__GNUC__) */ #ifdef ALLOW_MISALIGNED #pragma pack(1) #endif struct RARPPM_MEM_BLK { … } RARPPM_PACK_ATTR; #ifdef ALLOW_MISALIGNED #ifdef _AIX #pragma pack(pop) #else #pragma pack() #endif #endif class SubAllocator { … }; #endif /* !defined(_SUBALLOC_H_) */