From aee4a3738eaa5026a5ade1e865f67860c9bc004f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 31 Aug 2006 15:20:43 +0000 Subject: 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 --- src/Makefile.am | 1 + src/pulsecore/mutex-posix.c | 1 - src/pulsecore/refcnt.h | 1 - src/pulsecore/thread-posix.c | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 #include -#define AO_REQUIRE_CAS #include #include 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 #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 #include -#define AO_REQUIRE_CAS #include #include -- cgit