Skip to content

Commit

Permalink
video/xbios: remove __attribute__((packed))
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Aug 31, 2011
1 parent d130e6e commit 1766848
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/video/xbios/SDL_xbios_blowup.h
Expand Up @@ -70,14 +70,14 @@ typedef struct {
unsigned short registers_C0; /* value for register 0xffff82c0 */
unsigned short registers_C2; /* value for register 0xffff82c2 */
unsigned short dummy40[30];
} __attribute__((packed)) blow_mode_t;
} blow_mode_t;

typedef struct {
blow_mode_t blowup_modes[10];
unsigned char num_mode[6];
unsigned long dummy;
unsigned short montype;
} __attribute__((packed)) blow_cookie_t;
} blow_cookie_t;

/*--- Functions prototypes ---*/

Expand Down
2 changes: 1 addition & 1 deletion src/video/xbios/SDL_xbios_centscreen.h
Expand Up @@ -60,7 +60,7 @@ typedef struct {
unsigned short hsize; /* screen height (mm) */
unsigned short dummy[21];
unsigned char name[32]; /* videomode name */
} __attribute__((packed)) centscreen_mode_t;
} centscreen_mode_t;

/*--- Functions prototypes ---*/

Expand Down
4 changes: 2 additions & 2 deletions src/video/xbios/SDL_xbios_milan.h
Expand Up @@ -91,7 +91,7 @@ typedef struct _scrblk {
unsigned long blk_w; /* width */
unsigned long blk_h; /* height */
unsigned long blk_wrap; /* width in bytes */
} __attribute__((packed)) SCRMEMBLK;
} SCRMEMBLK;

typedef struct screeninfo {
unsigned long size; /* Size of structure */
Expand Down Expand Up @@ -120,7 +120,7 @@ typedef struct screeninfo {
unsigned long pagemem; /* needed memory for one page */
unsigned long max_x; /* max. possible width */
unsigned long max_y; /* max. possible heigth */
} __attribute__((packed)) SCREENINFO;
} SCREENINFO;

/*--- Functions prototypes ---*/

Expand Down
4 changes: 2 additions & 2 deletions src/video/xbios/SDL_xbios_sb3.h
Expand Up @@ -57,7 +57,7 @@ typedef struct {
unsigned long size; /* Size of screen in bytes */
unsigned short device; /* Device number to find planes = getRez() */
/* = Index in scpn_planes_device[] */
} __attribute__((packed)) scpn_screeninfo_t;
} scpn_screeninfo_t;

typedef struct {
unsigned long magic; /* just a BRA assembler jump */
Expand All @@ -71,7 +71,7 @@ typedef struct {
unsigned short dummy4;
scpn_screeninfo_t *screen_info;
unsigned short dummy6;
} __attribute__((packed)) scpn_cookie_t;
} scpn_cookie_t;

/*--- Function prototypes ---*/

Expand Down
2 changes: 1 addition & 1 deletion src/video/xbios/SDL_xbios_tveille.h
Expand Up @@ -53,7 +53,7 @@ typedef struct {
unsigned char serial_redir;
unsigned char dummy4;
void (*oldserial_ptr)();
} __attribute__((packed)) tveille_t;
} tveille_t;

/*--- Functions prototypes ---*/

Expand Down

0 comments on commit 1766848

Please sign in to comment.