X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfsound%2Fstdafx.h;h=ff082bc85602c6b7693ac0f6f309e9614e8a1807;hb=548cdef90b0ff6137c609c59df9566925c25bb14;hp=82b0d7e584d51fafded7b0fc809ab257e8637711;hpb=029e681c394691e626aab685eacad0610b6048ad;p=pcsx_rearmed.git diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h index 82b0d7e5..ff082bc8 100644 --- a/plugins/dfsound/stdafx.h +++ b/plugins/dfsound/stdafx.h @@ -15,6 +15,9 @@ * * ***************************************************************************/ +#ifndef __P_STDAFX_H__ +#define __P_STDAFX_H__ + #include #include #include @@ -29,4 +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__ */