1
0
Fork 0

packed typedefs. I didn't know they existed. Neither does gcc

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1949
This commit is contained in:
Peter Veenstra 2004-09-07 18:21:51 +00:00
parent 8f64b09447
commit 4e55ec7806

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: paging.h,v 1.10 2004-09-05 18:54:59 qbix79 Exp $ */
/* $Id: paging.h,v 1.11 2004-09-07 18:21:51 qbix79 Exp $ */
#ifndef _PAGING_H_
#define _PAGING_H_
@ -76,7 +76,7 @@ void MEM_SetPageHandler(Bitu phys_page,Bitu pages,PageHandler * handler);
#ifdef _MSC_VER
#pragma pack (1)
#endif
typedef struct {
struct X86_PageEntryBlock{
Bit32u p:1;
Bit32u wr:1;
Bit32u us:1;
@ -88,7 +88,7 @@ typedef struct {
Bit32u g:1;
Bit32u avl:3;
Bit32u base:20;
} X86_PageEntryBlock GCC_ATTRIBUTE(packed);
} GCC_ATTRIBUTE(packed);
#ifdef _MSC_VER
#pragma pack ()
#endif