aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-03-04 12:44:31 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2008-03-04 12:44:31 +0000
commit676e18068fd59ae79f0c74538fcae607e24809fa (patch)
tree1ea12a8e31735dd23c71efb8decb979633a8ddcc
parent649af4e87087e3d0c97b8537d19937c54000d773 (diff)
downloadgcc-676e18068fd59ae79f0c74538fcae607e24809fa.zip
gcc-676e18068fd59ae79f0c74538fcae607e24809fa.tar.gz
gcc-676e18068fd59ae79f0c74538fcae607e24809fa.tar.bz2
crossconfig.m4 (*-mingw32*): Define HAVE_STRTOF and HAVE_STRTOLD.
* crossconfig.m4 (*-mingw32*): Define HAVE_STRTOF and HAVE_STRTOLD. * configure: Regenerate. From-SVN: r132859
-rw-r--r--libstdc++-v3/ChangeLog6
-rwxr-xr-xlibstdc++-v3/configure10
-rw-r--r--libstdc++-v3/crossconfig.m42
3 files changed, 17 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 00f61e4..b8f16da 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-04 Joseph Myers <joseph@codesourcery.com>
+
+ * crossconfig.m4 (*-mingw32*): Define HAVE_STRTOF and
+ HAVE_STRTOLD.
+ * configure: Regenerate.
+
2008-03-02 Hans-Peter Nilsson <hp@axis.com>
* testsuite/20_util/shared_ptr/assign/shared_ptr_neg.cc,
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index b95feb4..b20e874 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -17976,7 +17976,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
# Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
cat > conftest.$ac_ext << EOF
-#line 17851 "configure"
+#line 17979 "configure"
int main()
{
// NB: _Atomic_word not necessarily int.
@@ -110019,6 +110019,14 @@ fi
done
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_STRTOF 1
+_ACEOF
+
+ cat >>confdefs.h <<\_ACEOF
+#define HAVE_STRTOLD 1
+_ACEOF
+
# If we're not using GNU ld, then there's no point in even trying these
# tests. Check for that first. We should have already tested for gld
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index 6d0c226..2eb6756 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -234,6 +234,8 @@ case "${host}" in
;;
*-mingw32*)
AC_CHECK_HEADERS([sys/types.h locale.h float.h])
+ AC_DEFINE(HAVE_STRTOF)
+ AC_DEFINE(HAVE_STRTOLD)
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
;;