summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/Makefile3
-rw-r--r--sysdeps/ieee754/ieee754.h11
2 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/ieee754/Makefile b/sysdeps/ieee754/Makefile
new file mode 100644
index 0000000000..3796e728aa
--- /dev/null
+++ b/sysdeps/ieee754/Makefile
@@ -0,0 +1,3 @@
+ifeq ($(subdir),math)
+sysdep_headers += ieee754.h
+endif
diff --git a/sysdeps/ieee754/ieee754.h b/sysdeps/ieee754/ieee754.h
index 9e6efe4973..ba40cc7683 100644
--- a/sysdeps/ieee754/ieee754.h
+++ b/sysdeps/ieee754/ieee754.h
@@ -16,8 +16,15 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifndef _IEEE754_H
+
+#define _IEEE754_H 1
+#include <features.h>
+
#include <endian.h>
+__BEGIN_DECLS
+
union ieee754_float
{
float f;
@@ -153,3 +160,7 @@ union ieee854_long_double
};
#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
+
+__END_DECLS
+
+#endif /* ieee754.h */