diff src/vbuf.h @ 129:fc11b1d1ad34

fix initial from header in mbox format. start moving to PST_LE_GET* rather than LE*_CPU macros so we can eventually remove the pragma packing.
author Carl Byington <carl@five-ten-sg.com>
date Thu, 05 Feb 2009 12:09:04 -0800
parents 6395ced2b8b2
children e35fd42bac05
line wrap: on
line diff
--- a/src/vbuf.h	Thu Feb 05 09:22:22 2009 -0800
+++ b/src/vbuf.h	Thu Feb 05 12:09:04 2009 -0800
@@ -87,4 +87,17 @@
 size_t vb_utf8to8bit(vbuf *dest, const char *inbuf, int iblen, const char* charset);
 
 int vb_skipline( struct varbuf *vb ); // in: vb->b == "stuff\nmore_stuff"; out: vb->b == "more_stuff"
+
+
+// switch from maximal packing back to default packing
+// undo the packing from common.h
+#ifdef _MSC_VER
+    #pragma pack(pop)
 #endif
+#if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC)
+    #pragma pack()
+#endif
+
+
+
+#endif // VBUF_H