summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/tgmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Headers/tgmath.h')
-rw-r--r--clang/lib/Headers/tgmath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Headers/tgmath.h b/clang/lib/Headers/tgmath.h
index 1b0b9d24c1d..0617ae2ddb3 100644
--- a/clang/lib/Headers/tgmath.h
+++ b/clang/lib/Headers/tgmath.h
@@ -26,6 +26,7 @@
#define __TGMATH_H
/* C99 7.22 Type-generic math <tgmath.h>. */
+#if __has_include(<math.h>)
#include <math.h>
/* C++ handles type genericity with overloading in math.h. */
@@ -1354,4 +1355,5 @@ static long double
#undef _TG_ATTRS
#endif /* __cplusplus */
+#endif /* __has_include(<math.h>) */
#endif /* __TGMATH_H */
OpenPOWER on IntegriCloud