Add include guards for init_numThreads()

This commit is contained in:
senhuang42 2020-09-08 09:26:16 -04:00
parent cc29492c5f
commit 243c8dfb41

View File

@ -618,6 +618,7 @@ static int init_cLevel(void) {
return ZSTDCLI_CLEVEL_DEFAULT; return ZSTDCLI_CLEVEL_DEFAULT;
} }
#ifdef ZSTD_MULTITHREAD
static unsigned init_numThreads(void) { static unsigned init_numThreads(void) {
const char* const env = getenv(ENV_NUMTHREADS); const char* const env = getenv(ENV_NUMTHREADS);
if (env != NULL) { if (env != NULL) {
@ -636,6 +637,7 @@ static unsigned init_numThreads(void) {
return ZSTDCLI_NUMTHREADS_DEFAULT; return ZSTDCLI_NUMTHREADS_DEFAULT;
} }
#endif
#define NEXT_FIELD(ptr) { \ #define NEXT_FIELD(ptr) { \
if (*argument == '=') { \ if (*argument == '=') { \