[Pixman] [PATCH 1/8] Add platform specific mutex implementations

Søren Sandmann sandmann at cs.au.dk
Tue Sep 27 07:03:38 PDT 2011


Taekyun Kim <podain77 at gmail.com> writes:

> +#else
> +
> +typedef int pixman_mutex_t;
> +
> +#   define PIXMAN_MUTEX_INIT(mutex)	do while (0) {}
> +#   define PIXMAN_MUTEX_LOCK(mutex)	do while (0) {}
> +#   define PIXMAN_MUTEX_UNLOCK(mutex)	do while (0) {}
> +#   define PIXMAN_MUTEX_FINI(mutex)	do while (0) {}
> +
> +#   warning "Unknown mutex support for this system. Pixman will work
> without mutex support."

Does 

     do while (0) {} 

actually compile? You probably mean

     do { } while (0)


Soren


More information about the Pixman mailing list