summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/machine/ieeefp.h2
-rw-r--r--newlib/libc/include/sys/config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h
index d60759925..7502d3aed 100644
--- a/newlib/libc/include/machine/ieeefp.h
+++ b/newlib/libc/include/machine/ieeefp.h
@@ -138,7 +138,9 @@
#ifdef __D10V__
#define __IEEE_BIG_ENDIAN
+#if __DOUBLE__ == 32
#define _DOUBLE_IS_32BITS
+#endif
#define __SMALL_BITFIELDS
#endif
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 874622489..8b1358893 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -38,7 +38,9 @@
#undef UINT_MAX
#define INT_MAX __INT_MAX__
#define UINT_MAX (__INT_MAX__ * 2U + 1)
+#if __DOUBLE__ == 32
#define _DOUBLE_IS_32BITS
+#endif
#define _POINTER_INT short
#define __IEEE_BIG_ENDIAN
#endif