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:
parent
8f64b09447
commit
4e55ec7806
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue