diff --git a/openmp/runtime/src/include/omp.h.var b/openmp/runtime/src/include/omp.h.var index dee46e51d6b34..82f9d07657ffb 100644 --- a/openmp/runtime/src/include/omp.h.var +++ b/openmp/runtime/src/include/omp.h.var @@ -15,8 +15,14 @@ #ifndef __OMP_H # define __OMP_H +# ifndef __has_include +# define __has_include(x) 0 +# endif + # include -# include +# if (__has_include()) +# include +# endif # include # define KMP_VERSION_MAJOR @LIBOMP_VERSION_MAJOR@