* crossconfig.m4 (*-mingw32*): Define HAVE_STRTOF and
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Mar 2008 12:44:31 +0000 (12:44 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Mar 2008 12:44:31 +0000 (12:44 +0000)
HAVE_STRTOLD.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132859 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/configure
libstdc++-v3/crossconfig.m4

index 00f61e4..b8f16da 100644 (file)
@@ -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,
index b95feb4..b20e874 100755 (executable)
@@ -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.
 
 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
index 6d0c226..2eb6756 100644 (file)
@@ -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
     ;;