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

This commit is contained in:
Damjan Jovanovic 2007-02-06 09:35:50 +02:00 committed by Alexandre Julliard
parent 0f376b4874
commit 65d9723dc4
3 changed files with 23 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;