Only include OpenMP headers if we are actually compiling with OpenMP
Fixes building on OSX with Clang
Esse commit está contido em:
@@ -2,7 +2,10 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <map> // multimap (ordered map allowing duplicate keys)
|
||||
#include <omp.h>
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>"
|
||||
#endif
|
||||
|
||||
#include "utils/math.h"
|
||||
#include "utils/algorithm.h"
|
||||
|
||||
+3
-1
@@ -20,7 +20,9 @@
|
||||
|
||||
#include "settings/SettingsToGV.h"
|
||||
|
||||
#include <omp.h> // omp_get_num_threads
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h> // omp_get_num_threads
|
||||
#endif
|
||||
|
||||
namespace cura
|
||||
{
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário