aboutsummaryrefslogtreecommitdiff
path: root/openmp/runtime/src
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/include/omp.h.var8
1 files changed, 7 insertions, 1 deletions
diff --git a/openmp/runtime/src/include/omp.h.var b/openmp/runtime/src/include/omp.h.var
index dee46e5..82f9d07 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 <stddef.h>
-# include <stdlib.h>
+# if (__has_include(<stdlib.h>))
+# include <stdlib.h>
+# endif
# include <stdint.h>
# define KMP_VERSION_MAJOR @LIBOMP_VERSION_MAJOR@