Rémi Bernon (@rbernon) commented about dlls/bluetoothapis/sdp.c:
+#include "wine/debug.h" +#include "bthsdpdef.h" +#include "bluetoothapis.h"
+WINE_DEFAULT_DEBUG_CHANNEL( bluetoothapis );
+#ifdef WORDS_BIGENDIAN +#define BTH_READ_UINT16( s ) (s) +#define BTH_READ_UINT32( s ) (s) +#define BTH_READ_UINT64( s ) (s) +#else +#define BTH_READ_UINT16( s ) RtlUshortByteSwap( *(USHORT *)(s) ) +#define BTH_READ_UINT32( s ) RtlUlongByteSwap( *(ULONG *)(s) ) +#define BTH_READ_UINT64( s ) RtlUlonglongByteSwap( *(ULONGLONG *)(s) ) +#endif
I don't think we care about big endian on the PE side at all (not sure we even do on the unix side, but who knows).