Commit 2af96fe5 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

msvcrt: Pack the structures on a 8-byte boundary like in PSDK.

parent 14478b8b
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifdef __cplusplus
extern "C" {
#endif
......@@ -77,4 +79,6 @@ static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
static inline int rmdir(const char* dir) { return _rmdir(dir); }
#include <poppack.h>
#endif /* __WINE_DIRECT_H */
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
/* The following are also defined in io.h */
#define _A_NORMAL 0x00000000
#define _A_RDONLY 0x00000001
......@@ -44,4 +46,6 @@ unsigned int _getdiskfree(unsigned int, struct _diskfree_t *);
#define diskfree_t _diskfree_t
#include <poppack.h>
#endif /* __WINE_DOS_H */
......@@ -27,6 +27,8 @@
#error "eh.h is meant only for C++ applications"
#endif
#include <pshpack8.h>
struct _EXCEPTION_POINTERS;
typedef void (*terminate_handler)(void);
......@@ -42,4 +44,6 @@ _se_translator_function _set_se_translator(_se_translator_function func);
void terminate(void);
void unexpected(void);
#include <poppack.h>
#endif /* __WINE_EH_H */
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
......@@ -183,4 +185,6 @@ extern int sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
#define sopen _sopen
#endif /* __GNUC__ */
#include <poppack.h>
#endif /* __WINE_IO_H */
......@@ -12,6 +12,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifdef __cplusplus
extern "C" {
#endif
......@@ -94,4 +96,6 @@ static const union {
}
#endif
#include <poppack.h>
#endif /* __WINE_MATH_H */
......@@ -23,6 +23,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
......@@ -134,4 +136,6 @@ int _ismbstrail(const unsigned char*,const unsigned char*);
}
#endif
#include <poppack.h>
#endif /* __WINE_MBSTRING_H */
......@@ -23,6 +23,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifdef __i386__
typedef struct __JUMP_BUFFER
......@@ -61,4 +63,6 @@ int longjmp(jmp_buf,int);
#define setjmp _setjmp
#include <poppack.h>
#endif /* __WINE_SETJMP_H */
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef RC_INVOKED
#include <stdarg.h>
#endif
......@@ -250,4 +252,6 @@ static inline int getw(FILE* file) { return _getw(file); }
static inline int putw(int val, FILE* file) { return _putw(val, file); }
static inline FILE* wpopen(const wchar_t* command,const wchar_t* mode) { return _wpopen(command, mode); }
#include <poppack.h>
#endif /* __WINE_STDIO_H */
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
......@@ -246,4 +248,6 @@ static inline ldiv_t __wine_msvcrt_ldiv(long num, long denom)
#define ldiv(num,denom) __wine_msvcrt_ldiv(num,denom)
#endif
#include <poppack.h>
#endif /* __WINE_STDLIB_H */
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#include <sys/types.h>
#ifndef _WCHAR_T_DEFINED
......@@ -174,4 +176,6 @@ static inline int umask(int fd) { return _umask(fd); }
#define _UMASK_DEFINED
#endif
#include <poppack.h>
#endif /* __WINE_SYS_STAT_H */
......@@ -23,6 +23,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _TIME_T_DEFINED
typedef long time_t;
#define _TIME_T_DEFINED
......@@ -55,4 +57,6 @@ void _ftime(struct _timeb*);
static inline void ftime(struct _timeb* ptr) { return _ftime(ptr); }
#include <poppack.h>
#endif /* __WINE_SYS_TIMEB_H */
......@@ -23,6 +23,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
......@@ -62,4 +64,6 @@ int _wutime(const wchar_t*,struct _utimbuf*);
static inline int utime(const char* path, struct _utimbuf* buf) { return _utime(path, buf); }
#include <poppack.h>
#endif /* __WINE_SYS_UTIME_H */
......@@ -23,6 +23,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
......@@ -127,4 +129,6 @@ wchar_t*_wstrtime(wchar_t*);
}
#endif
#include <poppack.h>
#endif /* __WINE_TIME_H */
......@@ -11,6 +11,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#include <stdarg.h>
#ifdef __cplusplus
......@@ -428,4 +430,6 @@ int wctob(wint_t);
}
#endif
#include <poppack.h>
#endif /* __WINE_WCHAR_H */
......@@ -23,6 +23,8 @@
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
......@@ -84,4 +86,6 @@ wchar_t towupper(wchar_t);
}
#endif
#include <poppack.h>
#endif /* __WINE_WCTYPE_H */
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