X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fdfsound%2Fstdafx.h;h=ff082bc85602c6b7693ac0f6f309e9614e8a1807;hb=38b8a211aad8d2c485ccf0c0cbb58d965aac3483;hp=d40344f3103832c9fc7cc666a6d7f0021bfb30ad;hpb=07c13dfd11cbd45e96a5c21cd88ccd44601678ea;p=pcsx_rearmed.git diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h index d40344f3..ff082bc8 100644 --- a/plugins/dfsound/stdafx.h +++ b/plugins/dfsound/stdafx.h @@ -15,29 +15,31 @@ * * ***************************************************************************/ -#ifndef _MACOSX -#include "config.h" -#endif +#ifndef __P_STDAFX_H__ +#define __P_STDAFX_H__ + #include #include -#include -#include -#include -#include -#include -#define RRand(range) (random()%range) #include -#include -#include #undef CALLBACK #define CALLBACK -#define DWORD unsigned long -#define LOWORD(l) ((unsigned short)(l)) -#define HIWORD(l) ((unsigned short)(((unsigned long)(l) >> 16) & 0xFFFF)) +#define DWORD unsigned int +#define LOWORD(l) ((unsigned short)(l)) +#define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF)) #ifndef INLINE #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__ */