From feb4b6e6b30512454ba354e26e2d2816a1b72289 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 31 Jul 2013 22:50:57 -0700 Subject: [PATCH] thread.h: #ifdef when checking WEBP_USE_THREAD prevents a warning with -Wundef and is consistent with thread.c Change-Id: I60fa337c3b9daeea7302e86802402cb943cdb262 --- src/utils/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/thread.h b/src/utils/thread.h index 13a61a4c..32d59307 100644 --- a/src/utils/thread.h +++ b/src/utils/thread.h @@ -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_;