protect OpenMP header include with ifdefs

This commit is contained in:
Axel Kohlmeyer 2018-03-12 11:56:54 -04:00
parent 35abbab966
commit 25c46593ee
1 changed files with 2 additions and 0 deletions

View File

@ -32,7 +32,9 @@
#pragma offload_attribute(pop)
#endif
#if defined(_OPENMP)
#include <omp.h>
#endif
#include <string.h>
#include "pair_airebo_intel.h"
#include "atom.h"