[cairo-commit] src/cairoint.h

Peter Weilbacher pmw at kemper.freedesktop.org
Thu Feb 8 11:30:05 PST 2007


 src/cairoint.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree e711700d5d766b4b923a10bfaabb57163b55a21d (from 2d1db24d1e7f3967b7ab498ce0ed29508c08a04b)
Author: Peter Weilbacher <pmw at avila.aip.de>
Date:   Thu Feb 8 20:29:18 2007 +0100

    Correct scaled font mutex definitions for OS/2
    
    Using a zero without brackets to quiet remaining GCC compilation warning.
    Use FALSE so that the mutex does not block on creation.

diff --git a/src/cairoint.h b/src/cairoint.h
index c8949f4..1495a09 100755
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -179,9 +179,9 @@ typedef CRITICAL_SECTION cairo_mutex_t;
 # define CAIRO_MUTEX_LOCK(name) DosRequestMutexSem(name, SEM_INDEFINITE_WAIT)
 # define CAIRO_MUTEX_UNLOCK(name) DosReleaseMutexSem(name)
 typedef HMTX cairo_mutex_t;
-# define CAIRO_MUTEX_INIT(mutex) DosCreateMutexSem (NULL, mutex, 0L, TRUE)
+# define CAIRO_MUTEX_INIT(mutex) DosCreateMutexSem (NULL, mutex, 0L, FALSA)
 # define CAIRO_MUTEX_FINI(mutex) DosCloseMutexSem (*(mutex))
-# define CAIRO_MUTEX_NIL_INITIALIZER { 0 }
+# define CAIRO_MUTEX_NIL_INITIALIZER 0
 #endif
 
 #if !defined(CAIRO_MUTEX_DECLARE) && defined CAIRO_HAS_BEOS_SURFACE


More information about the cairo-commit mailing list