From 0cf83b5a1bb15a4b9547f402c61019d7bec0b62e Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 24 Oct 2012 22:26:45 -0400 Subject: [PATCH] minor tweak to the mts_omp_* macros --- include/mitsuba/core/thread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mitsuba/core/thread.h b/include/mitsuba/core/thread.h index f284518c..5b099912 100644 --- a/include/mitsuba/core/thread.h +++ b/include/mitsuba/core/thread.h @@ -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