Only include OpenMP headers if we are actually compiling with OpenMP

Fixes building on OSX with Clang
Esse commit está contido em:
Arjen Hiemstra
2017-02-16 11:13:20 +01:00
commit 8b82ec4c95
2 arquivos alterados com 8 adições e 3 exclusões
+4 -1
Ver Arquivo
@@ -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"
+4 -2
Ver Arquivo
@@ -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
{
@@ -437,4 +439,4 @@ int main(int argc, char **argv)
}
return 0;
}
}