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:
James Zern 2013-07-31 22:50:57 -07:00
parent 8924a3a704
commit feb4b6e6b3

View File

@ -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_;