X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfsound%2Fstdafx.h;h=71921a928d0f77d33ed8546f0f90c6d8e7de3bf0;hb=7f2a91d0a12d2c096cafc3fa4e1f1da8f63e5af9;hp=8be88489b132876f213624c8f776b5776ef478a9;hpb=ef79bbde537d6b9c745a7d86cb9df1d04c35590d;p=pcsx_rearmed.git diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h index 8be88489..71921a92 100644 --- a/plugins/dfsound/stdafx.h +++ b/plugins/dfsound/stdafx.h @@ -15,32 +15,31 @@ * * ***************************************************************************/ -#ifndef _MACOSX -#include "config.h" -#endif +#ifndef __P_STDAFX_H__ +#define __P_STDAFX_H__ + #include #include -#include -#include -#include -#ifdef USEOSS -#include -#endif -#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 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__ */