Struct alignment changes

This commit is contained in:
twinaphex 2020-08-14 18:03:09 +02:00
parent d0b68ee838
commit b3963a2897
3 changed files with 15 additions and 16 deletions

View File

@ -57,11 +57,10 @@ struct config_file
struct config_entry_list *entries; struct config_entry_list *entries;
struct config_entry_list *tail; struct config_entry_list *tail;
struct config_entry_list *last; struct config_entry_list *last;
struct config_include_list *includes;
unsigned include_depth; unsigned include_depth;
bool guaranteed_no_duplicates; bool guaranteed_no_duplicates;
bool modified; bool modified;
struct config_include_list *includes;
}; };
typedef struct config_file config_file_t; typedef struct config_file config_file_t;

View File

@ -47,12 +47,12 @@ typedef struct msg_queue msg_queue_t;
typedef struct typedef struct
{ {
char msg[1024];
char title[1024];
unsigned duration; unsigned duration;
unsigned prio; unsigned prio;
enum message_queue_icon icon; enum message_queue_icon icon;
enum message_queue_category category; enum message_queue_category category;
char msg[1024];
char title[1024];
} msg_queue_entry_t; } msg_queue_entry_t;
/** /**

View File

@ -41,17 +41,17 @@ typedef void* HANDLE;
#ifdef HAVE_CDROM #ifdef HAVE_CDROM
typedef struct typedef struct
{ {
int64_t byte_pos;
char *cue_buf; char *cue_buf;
size_t cue_len; size_t cue_len;
int64_t byte_pos; unsigned cur_lba;
char drive; unsigned last_frame_lba;
unsigned char cur_min; unsigned char cur_min;
unsigned char cur_sec; unsigned char cur_sec;
unsigned char cur_frame; unsigned char cur_frame;
unsigned char cur_track; unsigned char cur_track;
unsigned cur_lba;
unsigned last_frame_lba;
unsigned char last_frame[2352]; unsigned char last_frame[2352];
char drive;
bool last_frame_valid; bool last_frame_valid;
} vfs_cdrom_t; } vfs_cdrom_t;
#endif #endif
@ -69,22 +69,22 @@ struct retro_vfs_file_handle
struct libretro_vfs_implementation_file struct libretro_vfs_implementation_file
#endif #endif
{ {
int fd; #ifdef HAVE_CDROM
unsigned hints; vfs_cdrom_t cdrom; /* int64_t alignment */
#endif
int64_t size; int64_t size;
char *buf; uint64_t mappos;
uint64_t mapsize;
FILE *fp; FILE *fp;
#ifdef _WIN32 #ifdef _WIN32
HANDLE fh; HANDLE fh;
#endif #endif
char *buf;
char* orig_path; char* orig_path;
uint64_t mappos;
uint64_t mapsize;
uint8_t *mapped; uint8_t *mapped;
int fd;
unsigned hints;
enum vfs_scheme scheme; enum vfs_scheme scheme;
#ifdef HAVE_CDROM
vfs_cdrom_t cdrom;
#endif
}; };
#endif #endif