mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-29 15:00:13 +01:00
[cairo-mutex] Warn if no mutex definition found and let sanity macros err
about undefined CAIRO_MUTEX macros.
This commit is contained in:
parent
6aa823841d
commit
12dfd8bb4b
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue