aboutsummaryrefslogtreecommitdiff
path: root/lib/include/openmp_wrappers/cmath
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-19 16:50:45 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-19 16:50:45 -0400
commit2117fbdae35dddf368c4ce5bb39cc73fa0f78d4c (patch)
tree54b38682f94cc183a7b8c87a4693c09902db23aa /lib/include/openmp_wrappers/cmath
parent70da0762f7aa2d800da4a238499fc3f31dc4d31f (diff)
downloadzig-2117fbdae35dddf368c4ce5bb39cc73fa0f78d4c.tar.gz
zig-2117fbdae35dddf368c4ce5bb39cc73fa0f78d4c.zip
update C headers to llvm9
upstream commit 1931d3cb20a00da732c5210b123656632982fde0
Diffstat (limited to 'lib/include/openmp_wrappers/cmath')
-rw-r--r--lib/include/openmp_wrappers/cmath16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/include/openmp_wrappers/cmath b/lib/include/openmp_wrappers/cmath
new file mode 100644
index 0000000000..a5183a1d8d
--- /dev/null
+++ b/lib/include/openmp_wrappers/cmath
@@ -0,0 +1,16 @@
+/*===-------------- cmath - Alternative cmath header -----------------------===
+ *
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+ * See https://llvm.org/LICENSE.txt for license information.
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+ *
+ *===-----------------------------------------------------------------------===
+ */
+
+#include <__clang_openmp_math.h>
+
+#ifndef __CLANG_NO_HOST_MATH__
+#include_next <cmath>
+#else
+#undef __CLANG_NO_HOST_MATH__
+#endif