diff src/libpst.h @ 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 7f747c8c9d02
children 5e4d6faada34
line wrap: on
line diff
--- a/src/libpst.h	Thu Feb 05 12:09:04 2009 -0800
+++ b/src/libpst.h	Thu Feb 05 13:38:46 2009 -0800
@@ -10,6 +10,18 @@
 #ifndef LIBPST_H
 #define LIBPST_H
 
+#include <libpst/common.h>
+
+
+// switch to maximal packing for all structures in the libpst interface
+// this is reverted at the end of this file
+#ifdef _MSC_VER
+    #pragma pack(push, 1)
+#endif
+#if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC)
+    #pragma pack(1)
+#endif
+
 
 #define PST_TYPE_NOTE        1
 #define PST_TYPE_APPOINTMENT 8
@@ -565,4 +577,16 @@
 void           pst_printIDptr(pst_file* pf);
 void           pst_printID2ptr(pst_index2_ll *ptr);
 
+
+// switch from maximal packing back to default packing
+// undo the packing from the beginning of this file
+#ifdef _MSC_VER
+    #pragma pack(pop)
+#endif
+#if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC)
+    #pragma pack()
+#endif
+
+
+
 #endif // defined LIBPST_H