diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-08-30 17:01:10 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-08-30 17:01:10 +0000 |
commit | ad0535beef4cd0d4e96fa194d54796a0945ed3c6 (patch) | |
tree | d8ccc95aee415aa50f32f672af8e10fe3029d06f /src | |
parent | a6b99d5196cf66aa276d9e7c9483f1b9e2fba491 (diff) |
Add AO_REQUIRE_CAS as we do.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1348 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/pulsecore/mutex-posix.c | 2 | ||||
-rw-r--r-- | src/pulsecore/refcnt.h | 1 | ||||
-rw-r--r-- | src/pulsecore/thread-posix.c | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c index d0156dbf..08baa386 100644 --- a/src/pulsecore/mutex-posix.c +++ b/src/pulsecore/mutex-posix.c @@ -25,6 +25,8 @@ #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 fade9aa4..ff0a9923 100644 --- a/src/pulsecore/refcnt.h +++ b/src/pulsecore/refcnt.h @@ -22,6 +22,7 @@ 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 15ade290..54f21b75 100644 --- a/src/pulsecore/thread-posix.c +++ b/src/pulsecore/thread-posix.c @@ -25,6 +25,8 @@ #include <assert.h> #include <pthread.h> + +#define AO_REQUIRE_CAS #include <atomic_ops.h> #include <pulse/xmalloc.h> |