mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-11 11:26:47 +02:00
thread.h: #ifdef when checking WEBP_USE_THREAD
prevents a warning with -Wundef and is consistent with thread.c Change-Id: I60fa337c3b9daeea7302e86802402cb943cdb262
This commit is contained in:
parent
8924a3a704
commit
feb4b6e6b3
@ -22,7 +22,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if WEBP_USE_THREAD
|
#ifdef WEBP_USE_THREAD
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ typedef int (*WebPWorkerHook)(void*, void*);
|
|||||||
|
|
||||||
// Synchronize object used to launch job in the worker thread
|
// Synchronize object used to launch job in the worker thread
|
||||||
typedef struct {
|
typedef struct {
|
||||||
#if WEBP_USE_THREAD
|
#ifdef WEBP_USE_THREAD
|
||||||
pthread_mutex_t mutex_;
|
pthread_mutex_t mutex_;
|
||||||
pthread_cond_t condition_;
|
pthread_cond_t condition_;
|
||||||
pthread_t thread_;
|
pthread_t thread_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user