aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2001-08-24 21:57:15 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2001-08-24 21:57:15 +0000
commit405bfc410e0fc22205ee372bfeb91920f26cbd0f (patch)
treefd8d7ee37ad116b36d6659288a0fb8899b916ddc
parent11a584be8df485f90199715527bc2cbad51e0918 (diff)
downloadgcc-405bfc410e0fc22205ee372bfeb91920f26cbd0f.zip
gcc-405bfc410e0fc22205ee372bfeb91920f26cbd0f.tar.gz
gcc-405bfc410e0fc22205ee372bfeb91920f26cbd0f.tar.bz2
limits.h (__glibcpp_long_double_bits): Only define if not already provided by per-OS file.
* config/cpu/i386/bits/limits.h (__glibcpp_long_double_bits): Only define if not already provided by per-OS file. * config/os/bsd/freebsd/bits/os_defines.h (__glibcpp_long_double_bits): Define. From-SVN: r45165
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/config/cpu/i386/bits/limits.h3
-rw-r--r--libstdc++-v3/config/os/bsd/freebsd/bits/os_defines.h2
3 files changed, 12 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 0067aba..2bd6f20 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-24 Loren J. Rittle <ljrittle@acm.org>
+
+ * config/cpu/i386/bits/limits.h (__glibcpp_long_double_bits): Only
+ define if not already provided by per-OS file.
+ * config/os/bsd/freebsd/bits/os_defines.h (__glibcpp_long_double_bits):
+ Define.
+
2001-08-24 Jan van Male <jan.vanmale@fenk.wau.nl>
* docs/html/17_intro/C++STYLE: Fix typo.
diff --git a/libstdc++-v3/config/cpu/i386/bits/limits.h b/libstdc++-v3/config/cpu/i386/bits/limits.h
index be304e2..31b6eab 100644
--- a/libstdc++-v3/config/cpu/i386/bits/limits.h
+++ b/libstdc++-v3/config/cpu/i386/bits/limits.h
@@ -28,6 +28,9 @@
#ifndef _GLIBCPP_CPU_LIMITS
#define _GLIBCPP_CPU_LIMITS 1
+// Some operating systems set this
+#ifndef __glibcpp_long_double_bits
#define __glibcpp_long_double_bits 80
+#endif
#endif
diff --git a/libstdc++-v3/config/os/bsd/freebsd/bits/os_defines.h b/libstdc++-v3/config/os/bsd/freebsd/bits/os_defines.h
index 3a6803f..3c31f3a 100644
--- a/libstdc++-v3/config/os/bsd/freebsd/bits/os_defines.h
+++ b/libstdc++-v3/config/os/bsd/freebsd/bits/os_defines.h
@@ -35,6 +35,8 @@
/* System-specific #define, typedefs, corrections, etc, go here. This
file will come before all others. */
+#define __glibcpp_long_double_bits __glibcpp_double_bits
+
#define _GLIBCPP_AVOID_FSEEK 1
#endif