mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01: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" {
|
||||
#endif
|
||||
|
||||
#if WEBP_USE_THREAD
|
||||
#ifdef WEBP_USE_THREAD
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
@ -55,7 +55,7 @@ typedef int (*WebPWorkerHook)(void*, void*);
|
||||
|
||||
// Synchronize object used to launch job in the worker thread
|
||||
typedef struct {
|
||||
#if WEBP_USE_THREAD
|
||||
#ifdef WEBP_USE_THREAD
|
||||
pthread_mutex_t mutex_;
|
||||
pthread_cond_t condition_;
|
||||
pthread_t thread_;
|
||||
|
Loading…
Reference in New Issue
Block a user