Commit a4c6ad6b authored by Alexandre Julliard's avatar Alexandre Julliard

include: Get rid of BITFIELDS_BIGENDIAN.

parent 6cc475db
...@@ -271,43 +271,33 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY; ...@@ -271,43 +271,33 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */ /* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
#if defined(__i386__) #if defined(__i386__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# define ALLOW_UNALIGNED_ACCESS # define ALLOW_UNALIGNED_ACCESS
#elif defined(__x86_64__) #elif defined(__x86_64__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# define ALLOW_UNALIGNED_ACCESS # define ALLOW_UNALIGNED_ACCESS
#elif defined(__powerpc__) #elif defined(__powerpc__)
# define WORDS_BIGENDIAN # define WORDS_BIGENDIAN
# define BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__ALPHA__) #elif defined(__ALPHA__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__ARMEB__) #elif defined(__ARMEB__)
# define WORDS_BIGENDIAN # define WORDS_BIGENDIAN
# define BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__ARMEL__) || defined(__arm__) #elif defined(__ARMEL__) || defined(__arm__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__AARCH64EB__) #elif defined(__AARCH64EB__)
# define WORDS_BIGENDIAN # define WORDS_BIGENDIAN
# define BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__AARCH64EL__) || defined(__aarch64__) #elif defined(__AARCH64EL__) || defined(__aarch64__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__MIPSEB__) #elif defined(__MIPSEB__)
# define WORDS_BIGENDIAN # define WORDS_BIGENDIAN
# define BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif defined(__MIPSEL__) #elif defined(__MIPSEL__)
# undef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS # undef ALLOW_UNALIGNED_ACCESS
#elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl) #elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
# error Unknown CPU architecture! # error Unknown CPU architecture!
......
...@@ -3817,33 +3817,17 @@ typedef struct _IMAGE_RESOURCE_DIRECTORY { ...@@ -3817,33 +3817,17 @@ typedef struct _IMAGE_RESOURCE_DIRECTORY {
typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY {
union { union {
struct { struct {
#ifdef BITFIELDS_BIGENDIAN
unsigned NameIsString:1;
unsigned NameOffset:31;
#else
unsigned NameOffset:31; unsigned NameOffset:31;
unsigned NameIsString:1; unsigned NameIsString:1;
#endif
} DUMMYSTRUCTNAME; } DUMMYSTRUCTNAME;
DWORD Name; DWORD Name;
#ifdef WORDS_BIGENDIAN
WORD __pad;
WORD Id;
#else
WORD Id; WORD Id;
WORD __pad;
#endif
} DUMMYUNIONNAME; } DUMMYUNIONNAME;
union { union {
DWORD OffsetToData; DWORD OffsetToData;
struct { struct {
#ifdef BITFIELDS_BIGENDIAN
unsigned DataIsDirectory:1;
unsigned OffsetToDirectory:31;
#else
unsigned OffsetToDirectory:31; unsigned OffsetToDirectory:31;
unsigned DataIsDirectory:1; unsigned DataIsDirectory:1;
#endif
} DUMMYSTRUCTNAME2; } DUMMYSTRUCTNAME2;
} DUMMYUNIONNAME2; } DUMMYUNIONNAME2;
} IMAGE_RESOURCE_DIRECTORY_ENTRY,*PIMAGE_RESOURCE_DIRECTORY_ENTRY; } IMAGE_RESOURCE_DIRECTORY_ENTRY,*PIMAGE_RESOURCE_DIRECTORY_ENTRY;
......
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