mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
include: Stop pretending to support big-endian.
This commit is contained in:
parent
6b4399e369
commit
3bb752736c
|
@ -295,38 +295,6 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
|
||||||
|
|
||||||
#define MINLONGLONG ((LONGLONG)~MAXLONGLONG)
|
#define MINLONGLONG ((LONGLONG)~MAXLONGLONG)
|
||||||
|
|
||||||
/* Some Wine-specific definitions */
|
|
||||||
|
|
||||||
/* Architecture dependent settings. */
|
|
||||||
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
|
|
||||||
#if defined(__i386__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif defined(__x86_64__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif defined(__powerpc64__) && defined(__BIG_ENDIAN__)
|
|
||||||
# define WORDS_BIGENDIAN
|
|
||||||
#elif defined(__powerpc64__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif defined(__powerpc__)
|
|
||||||
# define WORDS_BIGENDIAN
|
|
||||||
#elif defined(__ALPHA__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif defined(__ARMEB__)
|
|
||||||
# define WORDS_BIGENDIAN
|
|
||||||
#elif defined(__ARMEL__) || defined(__arm__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif defined(__AARCH64EB__)
|
|
||||||
# define WORDS_BIGENDIAN
|
|
||||||
#elif defined(__AARCH64EL__) || defined(__aarch64__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif defined(__MIPSEB__)
|
|
||||||
# define WORDS_BIGENDIAN
|
|
||||||
#elif defined(__MIPSEL__)
|
|
||||||
# undef WORDS_BIGENDIAN
|
|
||||||
#elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
|
|
||||||
# error Unknown CPU architecture!
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif /* defined(__cplusplus) */
|
#endif /* defined(__cplusplus) */
|
||||||
|
|
|
@ -37,13 +37,8 @@ typedef union tagCY
|
||||||
{
|
{
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
LONG Hi;
|
|
||||||
ULONG Lo;
|
|
||||||
#else
|
|
||||||
ULONG Lo;
|
ULONG Lo;
|
||||||
LONG Hi;
|
LONG Hi;
|
||||||
#endif
|
|
||||||
} DUMMYSTRUCTNAME;
|
} DUMMYSTRUCTNAME;
|
||||||
LONGLONG int64;
|
LONGLONG int64;
|
||||||
} CY;
|
} CY;
|
||||||
|
@ -55,13 +50,8 @@ typedef CY CURRENCY;
|
||||||
#define _FILETIME_
|
#define _FILETIME_
|
||||||
typedef struct _FILETIME
|
typedef struct _FILETIME
|
||||||
{
|
{
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD dwHighDateTime;
|
|
||||||
DWORD dwLowDateTime;
|
|
||||||
#else
|
|
||||||
DWORD dwLowDateTime;
|
DWORD dwLowDateTime;
|
||||||
DWORD dwHighDateTime;
|
DWORD dwHighDateTime;
|
||||||
#endif
|
|
||||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -252,13 +252,8 @@ typedef struct _SECURITY_ATTRIBUTES
|
||||||
/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
||||||
typedef struct _FILETIME
|
typedef struct _FILETIME
|
||||||
{
|
{
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD dwHighDateTime;
|
|
||||||
DWORD dwLowDateTime;
|
|
||||||
#else
|
|
||||||
DWORD dwLowDateTime;
|
DWORD dwLowDateTime;
|
||||||
DWORD dwHighDateTime;
|
DWORD dwHighDateTime;
|
||||||
#endif
|
|
||||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||||
#endif /* _FILETIME_ */
|
#endif /* _FILETIME_ */
|
||||||
|
|
||||||
|
@ -556,22 +551,12 @@ typedef struct _SYSTEMTIME{
|
||||||
/* The 'overlapped' data structure used by async I/O functions.
|
/* The 'overlapped' data structure used by async I/O functions.
|
||||||
*/
|
*/
|
||||||
typedef struct _OVERLAPPED {
|
typedef struct _OVERLAPPED {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
ULONG_PTR InternalHigh;
|
|
||||||
ULONG_PTR Internal;
|
|
||||||
#else
|
|
||||||
ULONG_PTR Internal;
|
ULONG_PTR Internal;
|
||||||
ULONG_PTR InternalHigh;
|
ULONG_PTR InternalHigh;
|
||||||
#endif
|
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD OffsetHigh;
|
|
||||||
DWORD Offset;
|
|
||||||
#else
|
|
||||||
DWORD Offset;
|
DWORD Offset;
|
||||||
DWORD OffsetHigh;
|
DWORD OffsetHigh;
|
||||||
#endif
|
|
||||||
} DUMMYSTRUCTNAME;
|
} DUMMYSTRUCTNAME;
|
||||||
PVOID Pointer;
|
PVOID Pointer;
|
||||||
} DUMMYUNIONNAME;
|
} DUMMYUNIONNAME;
|
||||||
|
|
|
@ -390,23 +390,13 @@ typedef struct _POINTL
|
||||||
|
|
||||||
typedef struct tagPOINTS
|
typedef struct tagPOINTS
|
||||||
{
|
{
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
SHORT y;
|
|
||||||
SHORT x;
|
|
||||||
#else
|
|
||||||
SHORT x;
|
SHORT x;
|
||||||
SHORT y;
|
SHORT y;
|
||||||
#endif
|
|
||||||
} POINTS, *PPOINTS, *LPPOINTS;
|
} POINTS, *PPOINTS, *LPPOINTS;
|
||||||
|
|
||||||
typedef struct _FILETIME {
|
typedef struct _FILETIME {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD dwHighDateTime;
|
|
||||||
DWORD dwLowDateTime;
|
|
||||||
#else
|
|
||||||
DWORD dwLowDateTime;
|
DWORD dwLowDateTime;
|
||||||
DWORD dwHighDateTime;
|
DWORD dwHighDateTime;
|
||||||
#endif
|
|
||||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||||
#define _FILETIME_
|
#define _FILETIME_
|
||||||
|
|
||||||
|
|
|
@ -4788,49 +4788,25 @@ typedef struct _TOKEN_GROUPS {
|
||||||
|
|
||||||
typedef union _LARGE_INTEGER {
|
typedef union _LARGE_INTEGER {
|
||||||
struct {
|
struct {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
LONG HighPart;
|
|
||||||
DWORD LowPart;
|
|
||||||
#else
|
|
||||||
DWORD LowPart;
|
DWORD LowPart;
|
||||||
LONG HighPart;
|
LONG HighPart;
|
||||||
#endif
|
|
||||||
} u;
|
} u;
|
||||||
#ifndef NONAMELESSSTRUCT
|
|
||||||
struct {
|
struct {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
LONG HighPart;
|
|
||||||
DWORD LowPart;
|
|
||||||
#else
|
|
||||||
DWORD LowPart;
|
DWORD LowPart;
|
||||||
LONG HighPart;
|
LONG HighPart;
|
||||||
#endif
|
} DUMMYSTRUCTNAME;
|
||||||
};
|
|
||||||
#endif
|
|
||||||
LONGLONG QuadPart;
|
LONGLONG QuadPart;
|
||||||
} LARGE_INTEGER, *PLARGE_INTEGER;
|
} LARGE_INTEGER, *PLARGE_INTEGER;
|
||||||
|
|
||||||
typedef union _ULARGE_INTEGER {
|
typedef union _ULARGE_INTEGER {
|
||||||
struct {
|
struct {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD HighPart;
|
|
||||||
DWORD LowPart;
|
|
||||||
#else
|
|
||||||
DWORD LowPart;
|
DWORD LowPart;
|
||||||
DWORD HighPart;
|
DWORD HighPart;
|
||||||
#endif
|
|
||||||
} u;
|
} u;
|
||||||
#ifndef NONAMELESSSTRUCT
|
|
||||||
struct {
|
struct {
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD HighPart;
|
|
||||||
DWORD LowPart;
|
|
||||||
#else
|
|
||||||
DWORD LowPart;
|
DWORD LowPart;
|
||||||
DWORD HighPart;
|
DWORD HighPart;
|
||||||
#endif
|
} DUMMYSTRUCTNAME;
|
||||||
};
|
|
||||||
#endif
|
|
||||||
ULONGLONG QuadPart;
|
ULONGLONG QuadPart;
|
||||||
} ULARGE_INTEGER, *PULARGE_INTEGER;
|
} ULARGE_INTEGER, *PULARGE_INTEGER;
|
||||||
|
|
||||||
|
|
|
@ -76,13 +76,8 @@ typedef const UNICODE_STRING *PCUNICODE_STRING;
|
||||||
/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
||||||
typedef struct _FILETIME
|
typedef struct _FILETIME
|
||||||
{
|
{
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
DWORD dwHighDateTime;
|
|
||||||
DWORD dwLowDateTime;
|
|
||||||
#else
|
|
||||||
DWORD dwLowDateTime;
|
DWORD dwLowDateTime;
|
||||||
DWORD dwHighDateTime;
|
DWORD dwHighDateTime;
|
||||||
#endif
|
|
||||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||||
#endif /* _FILETIME_ */
|
#endif /* _FILETIME_ */
|
||||||
|
|
||||||
|
|
|
@ -1625,15 +1625,9 @@ typedef struct tagCURSORINFO
|
||||||
/* this is the 6 byte accel struct used in Win32 when presented to the user */
|
/* this is the 6 byte accel struct used in Win32 when presented to the user */
|
||||||
typedef struct tagACCEL
|
typedef struct tagACCEL
|
||||||
{
|
{
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
WORD fVirt;
|
|
||||||
WORD key;
|
|
||||||
DWORD cmd;
|
|
||||||
#else
|
|
||||||
BYTE fVirt;
|
BYTE fVirt;
|
||||||
WORD key;
|
WORD key;
|
||||||
WORD cmd;
|
WORD cmd;
|
||||||
#endif
|
|
||||||
} ACCEL, *LPACCEL;
|
} ACCEL, *LPACCEL;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -646,13 +646,8 @@ cpp_quote("#ifndef _tagCY_DEFINED")
|
||||||
cpp_quote("#define _tagCY_DEFINED")
|
cpp_quote("#define _tagCY_DEFINED")
|
||||||
cpp_quote("typedef union tagCY {")
|
cpp_quote("typedef union tagCY {")
|
||||||
cpp_quote(" struct {")
|
cpp_quote(" struct {")
|
||||||
cpp_quote("#ifdef WORDS_BIGENDIAN")
|
|
||||||
cpp_quote(" LONG Hi;")
|
|
||||||
cpp_quote(" ULONG Lo;")
|
|
||||||
cpp_quote("#else")
|
|
||||||
cpp_quote(" ULONG Lo;")
|
cpp_quote(" ULONG Lo;")
|
||||||
cpp_quote(" LONG Hi;")
|
cpp_quote(" LONG Hi;")
|
||||||
cpp_quote("#endif")
|
|
||||||
cpp_quote(" } DUMMYSTRUCTNAME;")
|
cpp_quote(" } DUMMYSTRUCTNAME;")
|
||||||
cpp_quote(" LONGLONG int64;")
|
cpp_quote(" LONGLONG int64;")
|
||||||
cpp_quote("} CY;")
|
cpp_quote("} CY;")
|
||||||
|
@ -682,13 +677,8 @@ cpp_quote(" } DUMMYUNIONNAME;")
|
||||||
cpp_quote(" ULONG Hi32;")
|
cpp_quote(" ULONG Hi32;")
|
||||||
cpp_quote(" union {")
|
cpp_quote(" union {")
|
||||||
cpp_quote(" struct {")
|
cpp_quote(" struct {")
|
||||||
cpp_quote("#ifdef WORDS_BIGENDIAN")
|
|
||||||
cpp_quote(" ULONG Mid32;")
|
|
||||||
cpp_quote(" ULONG Lo32;")
|
|
||||||
cpp_quote("#else")
|
|
||||||
cpp_quote(" ULONG Lo32;")
|
cpp_quote(" ULONG Lo32;")
|
||||||
cpp_quote(" ULONG Mid32;")
|
cpp_quote(" ULONG Mid32;")
|
||||||
cpp_quote("#endif")
|
|
||||||
cpp_quote(" } DUMMYSTRUCTNAME1;")
|
cpp_quote(" } DUMMYSTRUCTNAME1;")
|
||||||
cpp_quote(" ULONGLONG Lo64;")
|
cpp_quote(" ULONGLONG Lo64;")
|
||||||
cpp_quote(" } DUMMYUNIONNAME1;")
|
cpp_quote(" } DUMMYUNIONNAME1;")
|
||||||
|
|
Loading…
Reference in a new issue