Skip to content

Commit 9121702

Browse files
committed
tweak header check
1 parent 13829de commit 9121702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
extern "C" SEXP defaultNumThreads() {
1212
SEXP threadsSEXP = Rf_allocVector(INTSXP, 1);
13-
#ifndef __TBB_tbb_stddef_H
13+
#ifdef __TBB_task_arena_H
1414
INTEGER(threadsSEXP)[0] = tbb::this_task_arena::max_concurrency();
1515
#else
1616
INTEGER(threadsSEXP)[0] = tbb::task_scheduler_init::default_num_threads();

0 commit comments

Comments
 (0)