minor tweak to the mts_omp_* macros

metadata
Wenzel Jakob 2012-10-24 22:26:45 -04:00
parent a2218c73e1
commit 0cf83b5a1b
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ extern MTS_EXPORT_CORE int mts_omp_get_thread_num();
#define mts_omp_get_max_threads omp_get_max_threads
#define mts_omp_get_thread_num omp_get_thread_num
#endif
#else
#define mts_omp_get_max_threads() 1
#define mts_omp_get_thread_num() 0
#endif
MTS_NAMESPACE_END