diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-04-19 16:36:10 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-04-19 16:36:10 -0400 |
commit | 6aa823841d6c1d59d4d972f0236f0e6a43199970 (patch) | |
tree | bd2b810f211ee212858f0e82d4bd5efb0c261fea /src/cairo-mutex-private.h | |
parent | e5980f69ad2d59ee305fe9aae62070a74d2df58b (diff) | |
download | cairo-6aa823841d6c1d59d4d972f0236f0e6a43199970.tar.gz |
[cairo-mutex] Support non-reentrant compilation if CAIRO_NO_MUTEX defined
to 1.
Diffstat (limited to 'src/cairo-mutex-private.h')
-rw-r--r-- | src/cairo-mutex-private.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cairo-mutex-private.h b/src/cairo-mutex-private.h index e0399c52c..5150b8ea9 100644 --- a/src/cairo-mutex-private.h +++ b/src/cairo-mutex-private.h @@ -54,7 +54,15 @@ CAIRO_BEGIN_DECLS -#if HAVE_PTHREAD_H /*********************************************************/ +#if CAIRO_NO_MUTEX + +typedef int cairo_mutex_t; +# define CAIRO_MUTEX_INITIALIZE() CAIRO_MUTEX_NOOP +# define CAIRO_MUTEX_LOCK(name) CAIRO_MUTEX_NOOP +# define CAIRO_MUTEX_UNLOCK(name) CAIRO_MUTEX_NOOP +# define CAIRO_MUTEX_NIL_INITIALIZER 0 + +#elif HAVE_PTHREAD_H /*******************************************************/ # include <pthread.h> |