mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-30 18:05:36 +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:
		| @@ -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_; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user