summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-31 15:20:43 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-31 15:20:43 +0000
commitaee4a3738eaa5026a5ade1e865f67860c9bc004f (patch)
tree3d9836f703edef0bdc386c9a6a194fb9d204a1d3 /src
parent7ce39d35c680d2a51e14c0776f3b3a17bdc598f0 (diff)
define AO_REQUIRE_CAS in the Makefile instead of each source file, effectively reversing r1348
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1351 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/pulsecore/mutex-posix.c1
-rw-r--r--src/pulsecore/refcnt.h1
-rw-r--r--src/pulsecore/thread-posix.c1
4 files changed, 1 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index bbdc4612..3b79acad 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -50,6 +50,7 @@ AM_CFLAGS += -DPA_DLSEARCHPATH=\"$(modlibexecdir)\"
AM_CFLAGS += -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\"
AM_CFLAGS += -DPA_BINARY=\"$(PA_BINARY)\"
AM_CFLAGS += -DPA_SYSTEM_RUNTIME_PATH=\"$(PA_SYSTEM_RUNTIME_PATH)\"
+AM_CFLAGS += -DAO_REQUIRE_CAS
# This cool debug trap works on i386/gcc only
AM_CFLAGS += '-DDEBUG_TRAP=__asm__("int $$3")'
diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c
index 08baa386..6f0e7336 100644
--- a/src/pulsecore/mutex-posix.c
+++ b/src/pulsecore/mutex-posix.c
@@ -26,7 +26,6 @@
#include <assert.h>
#include <pthread.h>
-#define AO_REQUIRE_CAS
#include <atomic_ops.h>
#include <pulse/xmalloc.h>
diff --git a/src/pulsecore/refcnt.h b/src/pulsecore/refcnt.h
index ff0a9923..fade9aa4 100644
--- a/src/pulsecore/refcnt.h
+++ b/src/pulsecore/refcnt.h
@@ -22,7 +22,6 @@
USA.
***/
-#define AO_REQUIRE_CAS
#include <atomic_ops.h>
#define PA_REFCNT_DECLARE volatile AO_t _ref
diff --git a/src/pulsecore/thread-posix.c b/src/pulsecore/thread-posix.c
index b634a6f6..6ca46d70 100644
--- a/src/pulsecore/thread-posix.c
+++ b/src/pulsecore/thread-posix.c
@@ -26,7 +26,6 @@
#include <assert.h>
#include <pthread.h>
-#define AO_REQUIRE_CAS
#include <atomic_ops.h>
#include <pulse/xmalloc.h>