changed MT enabling macro to ZSTD_MULTITHREAD
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(ZSTD_PTHREAD) && defined(_WIN32)
|
||||
#if defined(ZSTD_MULTITHREAD) && defined(_WIN32)
|
||||
|
||||
/**
|
||||
* Windows minimalist Pthread Wrapper, based on :
|
||||
@@ -73,11 +73,11 @@ int _pthread_join(pthread_t* thread, void** value_ptr);
|
||||
*/
|
||||
|
||||
|
||||
#elif defined(ZSTD_PTHREAD) /* posix assumed ; need a better detection mathod */
|
||||
#elif defined(ZSTD_MULTITHREAD) /* posix assumed ; need a better detection mathod */
|
||||
/* === POSIX Systems === */
|
||||
# include <pthread.h>
|
||||
|
||||
#else /* ZSTD_PTHREAD not defined */
|
||||
#else /* ZSTD_MULTITHREAD not defined */
|
||||
/* No multithreading support */
|
||||
|
||||
#define pthread_mutex_t int /* #define rather than typedef, as sometimes pthread support is implicit, resulting in duplicated symbols */
|
||||
@@ -95,7 +95,7 @@ int _pthread_join(pthread_t* thread, void** value_ptr);
|
||||
|
||||
/* do not use pthread_t */
|
||||
|
||||
#endif /* ZSTD_PTHREAD */
|
||||
#endif /* ZSTD_MULTITHREAD */
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user