include: Stop pretending to support big-endian.
This commit is contained in:
parent
6b4399e369
commit
3bb752736c
8 changed files with 2 additions and 114 deletions
|
@ -295,38 +295,6 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
|
|||
|
||||
#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
|
||||
} /* extern "C" */
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
|
|
@ -37,13 +37,8 @@ typedef union tagCY
|
|||
{
|
||||
struct
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
LONG Hi;
|
||||
ULONG Lo;
|
||||
#else
|
||||
ULONG Lo;
|
||||
LONG Hi;
|
||||
#endif
|
||||
} DUMMYSTRUCTNAME;
|
||||
LONGLONG int64;
|
||||
} CY;
|
||||
|
@ -55,13 +50,8 @@ typedef CY CURRENCY;
|
|||
#define _FILETIME_
|
||||
typedef struct _FILETIME
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD dwHighDateTime;
|
||||
DWORD dwLowDateTime;
|
||||
#else
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
#endif
|
||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -252,13 +252,8 @@ typedef struct _SECURITY_ATTRIBUTES
|
|||
/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
||||
typedef struct _FILETIME
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD dwHighDateTime;
|
||||
DWORD dwLowDateTime;
|
||||
#else
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
#endif
|
||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||
#endif /* _FILETIME_ */
|
||||
|
||||
|
@ -556,22 +551,12 @@ typedef struct _SYSTEMTIME{
|
|||
/* The 'overlapped' data structure used by async I/O functions.
|
||||
*/
|
||||
typedef struct _OVERLAPPED {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
ULONG_PTR InternalHigh;
|
||||
ULONG_PTR Internal;
|
||||
#else
|
||||
ULONG_PTR Internal;
|
||||
ULONG_PTR InternalHigh;
|
||||
#endif
|
||||
union {
|
||||
struct {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD OffsetHigh;
|
||||
DWORD Offset;
|
||||
#else
|
||||
DWORD Offset;
|
||||
DWORD OffsetHigh;
|
||||
#endif
|
||||
} DUMMYSTRUCTNAME;
|
||||
PVOID Pointer;
|
||||
} DUMMYUNIONNAME;
|
||||
|
|
|
@ -390,23 +390,13 @@ typedef struct _POINTL
|
|||
|
||||
typedef struct tagPOINTS
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
SHORT y;
|
||||
SHORT x;
|
||||
#else
|
||||
SHORT x;
|
||||
SHORT y;
|
||||
#endif
|
||||
} POINTS, *PPOINTS, *LPPOINTS;
|
||||
|
||||
typedef struct _FILETIME {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD dwHighDateTime;
|
||||
DWORD dwLowDateTime;
|
||||
#else
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
#endif
|
||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||
#define _FILETIME_
|
||||
|
||||
|
|
|
@ -4788,49 +4788,25 @@ typedef struct _TOKEN_GROUPS {
|
|||
|
||||
typedef union _LARGE_INTEGER {
|
||||
struct {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
LONG HighPart;
|
||||
DWORD LowPart;
|
||||
#else
|
||||
DWORD LowPart;
|
||||
LONG HighPart;
|
||||
#endif
|
||||
} u;
|
||||
#ifndef NONAMELESSSTRUCT
|
||||
struct {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
LONG HighPart;
|
||||
DWORD LowPart;
|
||||
#else
|
||||
DWORD LowPart;
|
||||
LONG HighPart;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
} DUMMYSTRUCTNAME;
|
||||
LONGLONG QuadPart;
|
||||
} LARGE_INTEGER, *PLARGE_INTEGER;
|
||||
|
||||
typedef union _ULARGE_INTEGER {
|
||||
struct {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD HighPart;
|
||||
DWORD LowPart;
|
||||
#else
|
||||
DWORD LowPart;
|
||||
DWORD HighPart;
|
||||
#endif
|
||||
} u;
|
||||
#ifndef NONAMELESSSTRUCT
|
||||
struct {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD HighPart;
|
||||
DWORD LowPart;
|
||||
#else
|
||||
DWORD LowPart;
|
||||
DWORD HighPart;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
} DUMMYSTRUCTNAME;
|
||||
ULONGLONG QuadPart;
|
||||
} 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 */
|
||||
typedef struct _FILETIME
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
DWORD dwHighDateTime;
|
||||
DWORD dwLowDateTime;
|
||||
#else
|
||||
DWORD dwLowDateTime;
|
||||
DWORD dwHighDateTime;
|
||||
#endif
|
||||
} FILETIME, *PFILETIME, *LPFILETIME;
|
||||
#endif /* _FILETIME_ */
|
||||
|
||||
|
|
|
@ -1625,15 +1625,9 @@ typedef struct tagCURSORINFO
|
|||
/* this is the 6 byte accel struct used in Win32 when presented to the user */
|
||||
typedef struct tagACCEL
|
||||
{
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
WORD fVirt;
|
||||
WORD key;
|
||||
DWORD cmd;
|
||||
#else
|
||||
BYTE fVirt;
|
||||
WORD key;
|
||||
WORD cmd;
|
||||
#endif
|
||||
} ACCEL, *LPACCEL;
|
||||
|
||||
|
||||
|
|
|
@ -646,13 +646,8 @@ cpp_quote("#ifndef _tagCY_DEFINED")
|
|||
cpp_quote("#define _tagCY_DEFINED")
|
||||
cpp_quote("typedef union tagCY {")
|
||||
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(" LONG Hi;")
|
||||
cpp_quote("#endif")
|
||||
cpp_quote(" } DUMMYSTRUCTNAME;")
|
||||
cpp_quote(" LONGLONG int64;")
|
||||
cpp_quote("} CY;")
|
||||
|
@ -682,13 +677,8 @@ cpp_quote(" } DUMMYUNIONNAME;")
|
|||
cpp_quote(" ULONG Hi32;")
|
||||
cpp_quote(" union {")
|
||||
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 Mid32;")
|
||||
cpp_quote("#endif")
|
||||
cpp_quote(" } DUMMYSTRUCTNAME1;")
|
||||
cpp_quote(" ULONGLONG Lo64;")
|
||||
cpp_quote(" } DUMMYUNIONNAME1;")
|
||||
|
|
Loading…
Add table
Reference in a new issue