Add a bunch of "__attribute__((__packed__))"s
to get along with the ELF compiler.
This commit is contained in:
parent
0ca6533695
commit
3e16beaf22
|
@ -6,7 +6,7 @@
|
|||
* (based on PD libc 1.1.32 by PROJECT C Library)
|
||||
* public domain
|
||||
*
|
||||
* $NetBSD: dos.h,v 1.1 1998/09/01 19:53:25 itohy Exp $
|
||||
* $NetBSD: dos.h,v 1.2 1999/11/22 01:14:55 itohy Exp $
|
||||
*/
|
||||
/*
|
||||
* PROJECT C Library, X68000 PROGRAMMING INTERFACE DEFINITION
|
||||
|
@ -52,7 +52,7 @@ union dos_fcb {
|
|||
char nouse_3;
|
||||
char name2[10];
|
||||
char nouse_4[38];
|
||||
} chr;
|
||||
} __attribute__((__packed__)) chr;
|
||||
struct {
|
||||
unsigned char dupcnt;
|
||||
unsigned mode : 1;
|
||||
|
@ -79,7 +79,7 @@ union dos_fcb {
|
|||
unsigned short fatno;
|
||||
unsigned long size;
|
||||
char nouse_4[28];
|
||||
} blk;
|
||||
} __attribute__((__packed__)) blk;
|
||||
};
|
||||
|
||||
struct dos_indos {
|
||||
|
@ -169,7 +169,7 @@ struct dos_dpbptr {
|
|||
struct dos_dpbptr *next;
|
||||
unsigned short dirfat;
|
||||
char dirbuf[64];
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct dos_filbuf {
|
||||
unsigned char searchatr;
|
||||
|
@ -184,7 +184,7 @@ struct dos_filbuf {
|
|||
unsigned short date;
|
||||
unsigned int filelen;
|
||||
char name[23];
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct dos_exfilbuf {
|
||||
unsigned char searchatr;
|
||||
|
@ -202,7 +202,7 @@ struct dos_exfilbuf {
|
|||
char drive[2];
|
||||
char path[65];
|
||||
char unused[21];
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct dos_dregs {
|
||||
int d0;
|
||||
|
@ -247,7 +247,7 @@ struct dos_prcptr {
|
|||
struct dos_prcctrl *buf_ptr;
|
||||
unsigned char name[16];
|
||||
long wait_time;
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
/*
|
||||
* arguments:
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* (based on PD libc 1.1.32 by PROJECT C Library)
|
||||
* public domain
|
||||
*
|
||||
* $NetBSD: iocs.h,v 1.1 1998/09/01 19:53:54 itohy Exp $
|
||||
* $NetBSD: iocs.h,v 1.2 1999/11/22 01:14:55 itohy Exp $
|
||||
*/
|
||||
/*
|
||||
* PROJECT C Library, X68000 PROGRAMMING INTERFACE DEFINITION
|
||||
|
@ -82,7 +82,7 @@ struct iocs_paintptr {
|
|||
unsigned short color;
|
||||
void *buf_start;
|
||||
void *buf_end;
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct iocs_pointptr {
|
||||
short x;
|
||||
|
@ -114,7 +114,7 @@ struct iocs_symbolptr {
|
|||
unsigned short color;
|
||||
unsigned char font_type;
|
||||
unsigned char angle;
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct iocs_regs {
|
||||
int d0;
|
||||
|
@ -136,13 +136,13 @@ struct iocs_regs {
|
|||
struct iocs_chain {
|
||||
void *addr;
|
||||
unsigned short len;
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct iocs_chain2 {
|
||||
void *addr;
|
||||
unsigned short len;
|
||||
__const struct iocs_chain2 *next;
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct iocs_clipxy {
|
||||
short xs;
|
||||
|
|
Loading…
Reference in New Issue