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
Support compiling without posix_memalign() function
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
spu.c
diff --git
a/plugins/dfsound/spu.c
b/plugins/dfsound/spu.c
index
97f07aa
..
f5e8de5
100644
(file)
--- a/
plugins/dfsound/spu.c
+++ b/
plugins/dfsound/spu.c
@@
-18,10
+18,6
@@
* *
***************************************************************************/
* *
***************************************************************************/
-#if !defined(_WIN32) && !defined(NO_OS)
-#include <sys/time.h> // gettimeofday in xa.c
-#define THREAD_ENABLED 1
-#endif
#include "stdafx.h"
#define _IN_SPU
#include "stdafx.h"
#define _IN_SPU
@@
-833,7
+829,7
@@
static void do_samples_finish(int *SSumLR, int ns_to,
// optional worker thread handling
// optional worker thread handling
-#if
defined(THREAD_ENABLED)
|| defined(WANT_THREAD_CODE)
+#if
HAVE_PTHREAD
|| defined(WANT_THREAD_CODE)
// worker thread state
static struct spu_worker {
// worker thread state
static struct spu_worker {
@@
-1088,7
+1084,7
@@
static void sync_worker_thread(int force) {}
static const void * const worker = NULL;
static const void * const worker = NULL;
-#endif //
THREAD_ENABLED
+#endif //
HAVE_PTHREAD || defined(WANT_THREAD_CODE)
////////////////////////////////////////////////////////////////////////
// MAIN SPU FUNCTION
////////////////////////////////////////////////////////////////////////
// MAIN SPU FUNCTION
@@
-1369,7
+1365,7
@@
static void RemoveStreams(void)
/* special code for TI C64x DSP */
#include "spu_c64x.c"
/* special code for TI C64x DSP */
#include "spu_c64x.c"
-#elif
defined(THREAD_ENABLED)
+#elif
HAVE_PTHREAD
#include <pthread.h>
#include <semaphore.h>
#include <pthread.h>
#include <semaphore.h>
@@
-1468,7
+1464,7
@@
static void exit_spu_thread(void)
worker = NULL;
}
worker = NULL;
}
-#else // if !
THREAD_ENABLE
D
+#else // if !
HAVE_PTHREA
D
static void init_spu_thread(void)
{
static void init_spu_thread(void)
{