about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/float.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/float.h b/include/float.h
index c6429d33..713aadb9 100644
--- a/include/float.h
+++ b/include/float.h
@@ -1,6 +1,10 @@
 #ifndef _FLOAT_H
 #define _FLOAT_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int __flt_rounds(void);
 #define FLT_ROUNDS (__flt_rounds())
 
@@ -41,4 +45,8 @@ int __flt_rounds(void);
 
 #include <bits/float.h>
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif