1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

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;
}
#ifdef ZSTD_MULTITHREAD
static unsigned init_numThreads(void) {
const char* const env = getenv(ENV_NUMTHREADS);
if (env != NULL) {
@ -636,6 +637,7 @@ static unsigned init_numThreads(void) {
return ZSTDCLI_NUMTHREADS_DEFAULT;
}
#endif
#define NEXT_FIELD(ptr) { \
if (*argument == '=') { \