X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfsound%2Fstdafx.h;h=71921a928d0f77d33ed8546f0f90c6d8e7de3bf0;hb=016c6e93f6db684211f5c8b05433cb500715ba50;hp=04aa23334b99114d99fe9028f08ecbef748411cc;hpb=3918505613cb814f8f5e0e8e0471f7b2a2cd8464;p=pcsx_rearmed.git diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h index 04aa2333..71921a92 100644 --- a/plugins/dfsound/stdafx.h +++ b/plugins/dfsound/stdafx.h @@ -22,21 +22,24 @@ #include #include -#ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#include -#else #undef CALLBACK #define CALLBACK #define DWORD unsigned int #define LOWORD(l) ((unsigned short)(l)) #define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF)) -#endif #ifndef INLINE #define INLINE static inline #endif +#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#define HTOLE16(x) __builtin_bswap16(x) +#define LE16TOH(x) __builtin_bswap16(x) +#else +#define HTOLE16(x) (x) +#define LE16TOH(x) (x) +#endif + #include "psemuxa.h" #endif /* __P_STDAFX_H__ */