From 3712d0a948d336ad8a61b72fd203a92a46e867f2 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 17 Jul 2006 16:10:07 +0000 Subject: Let's pack the MSVC way... *sigh* --- includes/cdutils.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/cdutils.h b/includes/cdutils.h index c463908..5978c15 100644 --- a/includes/cdutils.h +++ b/includes/cdutils.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdutils.h,v 1.19 2005-11-02 21:34:02 pixel Exp $ */ +/* $Id: cdutils.h,v 1.20 2006-07-17 16:10:07 pixel Exp $ */ #ifndef __CDUTILS_H__ #define __CDUTILS_H__ @@ -47,8 +47,11 @@ class cdutils : public Base { public: cdutils(Handle * f_iso_r, Handle * f_iso_w = 0); virtual ~cdutils(); - - PPACKED struct DirEntry { +#ifdef _MSC_VER +#pragma pack(push) +#pragma pack(1) +#endif + struct DirEntry { unsigned char R; unsigned char NExt; unsigned long Sector; @@ -70,6 +73,9 @@ class cdutils : public Base { unsigned char N; char id[1]; } PACKED; +#ifdef _MSC_VER +#pragma pack(pop) +#endif struct DirEntry * rootDir; -- cgit v1.2.3