X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fstdafx.h;fp=plugins%2Fdfsound%2Fstdafx.h;h=ff082bc85602c6b7693ac0f6f309e9614e8a1807;hp=96335e38ae945e2349e1d2c37660d36efa04a700;hb=38b8a211aad8d2c485ccf0c0cbb58d965aac3483;hpb=a3d87cd770ffb9b5bcbf519683ec7f29d67794e6 diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h index 96335e38..ff082bc8 100644 --- a/plugins/dfsound/stdafx.h +++ b/plugins/dfsound/stdafx.h @@ -32,6 +32,14 @@ #define INLINE static inline #endif +#if __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__ */