Commit 65d9723d authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

msvcrt: Align struct _stati64's st_size on an 8 byte boundary.

parent 0f376b48
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment