[libc++] Granularize <type_traits> includes in <compare>
Reviewed By: Mordante, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D140480
NOKEYCHECK=True
GitOrigin-RevId: e0a66116fcccd59d12485810f5311efafa134ea5
diff --git a/include/math.h b/include/math.h
index ac55983..dd68830 100644
--- a/include/math.h
+++ b/include/math.h
@@ -307,10 +307,13 @@
// back to C++ linkage before including these C++ headers.
extern "C++" {
+#include <__type_traits/enable_if.h>
+#include <__type_traits/is_floating_point.h>
+#include <__type_traits/is_integral.h>
+#include <__type_traits/is_same.h>
#include <__type_traits/promote.h>
#include <limits>
#include <stdlib.h>
-#include <type_traits>
# ifdef fpclassify