[cairo-mutex] Warn if no mutex definition found and let sanity macros err

about undefined CAIRO_MUTEX macros.
This commit is contained in:
Behdad Esfahbod 2007-04-19 16:36:43 -04:00
parent 6aa823841d
commit 12dfd8bb4b

View file

@ -134,10 +134,12 @@ typedef int cairo_mutex_t;
#else /**********************************************************************/
# define CAIRO_MUTEX_LOCK(name)
# define CAIRO_MUTEX_UNLOCK(name)
# warning "XXX: No mutex implementation found. Define CAIRO_NO_MUTEX to 1" \
" to compile cairo without thread-safety support."
#endif
#endif /********************************************************************/
#ifndef CAIRO_MUTEX_DECLARE
#define CAIRO_MUTEX_DECLARE(name) extern cairo_mutex_t name;