Mercurial > libpst
diff src/libpst.c @ 130:e35fd42bac05
more cleanup of include files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 05 Feb 2009 13:38:46 -0800 |
parents | fc11b1d1ad34 |
children | fd4297884319 |
line wrap: on
line diff
--- a/src/libpst.c Thu Feb 05 12:09:04 2009 -0800 +++ b/src/libpst.c Thu Feb 05 13:38:46 2009 -0800 @@ -7,9 +7,19 @@ #include "define.h" + +// switch to maximal packing for our own internal structures +// use the same code as in libpst.h +#ifdef _MSC_VER + #pragma pack(push, 1) +#endif +#if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC) + #pragma pack(1) +#endif + + #define ASSERT(x) { if(!(x)) raise( SIGSEGV ); } - #define INDEX_TYPE32 0x0E #define INDEX_TYPE32A 0x0F // unknown, but assumed to be similar for now #define INDEX_TYPE64 0x17