mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
msvcrt: Align struct _stati64's st_size on an 8 byte boundary.
This commit is contained in:
parent
0f376b4874
commit
65d9723dc4
@ -366,7 +366,7 @@ struct MSVCRT__stati64 {
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
MSVCRT__dev_t st_rdev;
|
||||
__int64 st_size;
|
||||
__int64 DECLSPEC_ALIGN(8) st_size;
|
||||
MSVCRT_time_t st_atime;
|
||||
MSVCRT_time_t st_mtime;
|
||||
MSVCRT_time_t st_ctime;
|
||||
|
@ -46,6 +46,16 @@ typedef int _off_t;
|
||||
#define _OFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_ALIGN
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
|
||||
# define DECLSPEC_ALIGN(x) __declspec(align(x))
|
||||
# elif defined(__GNUC__)
|
||||
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
|
||||
# else
|
||||
# define DECLSPEC_ALIGN(x)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define _S_IEXEC 0x0040
|
||||
#define _S_IWRITE 0x0080
|
||||
#define _S_IREAD 0x0100
|
||||
@ -99,7 +109,7 @@ struct _stati64 {
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
__int64 st_size;
|
||||
__int64 DECLSPEC_ALIGN(8) st_size;
|
||||
time_t st_atime;
|
||||
time_t st_mtime;
|
||||
time_t st_ctime;
|
||||
|
@ -43,6 +43,16 @@ typedef unsigned short wchar_t;
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef DECLSPEC_ALIGN
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
|
||||
# define DECLSPEC_ALIGN(x) __declspec(align(x))
|
||||
# elif defined(__GNUC__)
|
||||
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
|
||||
# else
|
||||
# define DECLSPEC_ALIGN(x)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef int mbstate_t;
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
@ -181,7 +191,7 @@ struct _stati64 {
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
__int64 st_size;
|
||||
__int64 DECLSPEC_ALIGN(8) st_size;
|
||||
time_t st_atime;
|
||||
time_t st_mtime;
|
||||
time_t st_ctime;
|
||||
|
Loading…
Reference in New Issue
Block a user