aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/openmp/patches/fix_stdlib_resolving.patch
blob: 72ec8d4e7921013bb87643228350098474ea8fb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/omp.h b/omp.h
index f2e6345..cb2fe49 100644
--- a/omp.h
+++ b/omp.h
@@ -15,7 +15,13 @@
 #ifndef __OMP_H
 #   define __OMP_H
 
+#if 0  // !defined(NORUNTIME) && !defined(USE_STL_SYSTEM)
+    // We need to put all possible dependencies to prevent blinking:
+    // on all stdlib.h that can be mentioned here within a platform.
+#   include <contrib/libs/cxxsupp/libcxx/include/stdlib.h>
+#else
 #   include <stdlib.h>
+#endif
 #   include <stdint.h>
 
 #   define KMP_VERSION_MAJOR    5