diff options
Diffstat (limited to 'lib/libcxx/include/tgmath.h')
-rw-r--r-- | lib/libcxx/include/tgmath.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/libcxx/include/tgmath.h b/lib/libcxx/include/tgmath.h index fbe1e8248d7..aba87499c29 100644 --- a/lib/libcxx/include/tgmath.h +++ b/lib/libcxx/include/tgmath.h @@ -14,16 +14,24 @@ /* tgmath.h synopsis -#include <complex.h> -#include <math.h> +#include <ctgmath> */ -#include <complex.h> -#include <math.h> +#include <__config> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header #endif +#ifdef __cplusplus + +#include <ctgmath> + +#else // __cplusplus + +#include_next <tgmath.h> + +#endif // __cplusplus + #endif // _LIBCPP_TGMATH_H |