notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libretro: improve retro_memory_map
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
stdafx.h
diff --git
a/plugins/dfsound/stdafx.h
b/plugins/dfsound/stdafx.h
index
8993bb3
..
71921a9
100644
(file)
--- 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 <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <sys/ioctl.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <pthread.h>
-#define RRand(range) (random()%range)
#include <string.h>
#include <string.h>
-#include <sys/time.h>
-#include <math.h>
#undef CALLBACK
#define CALLBACK
#define DWORD unsigned int
#undef CALLBACK
#define CALLBACK
#define DWORD unsigned int
-#define LOWORD(l) ((unsigned short)(l))
-#define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF))
+#define LOWORD(l) ((unsigned short)(l))
+#define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF))
#ifndef INLINE
#define INLINE static inline
#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"
#include "psemuxa.h"
+
+#endif /* __P_STDAFX_H__ */