Cleanup foo.h headers and __config to work in C

llvm-svn: 252274
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 60506cbcd48a905950971f7211ceef1867aa25c8
diff --git a/include/float.h b/include/float.h
index f890c68..1acfdc6 100644
--- a/include/float.h
+++ b/include/float.h
@@ -68,6 +68,8 @@
 
 #include_next <float.h>
 
+#ifdef __cplusplus
+
 #ifndef FLT_EVAL_METHOD
 #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
 #endif
@@ -76,4 +78,6 @@
 #define DECIMAL_DIG __DECIMAL_DIG__
 #endif
 
+#endif // __cplusplus
+
 #endif  // _LIBCPP_FLOAT_H