]> sourceware.org Git - newlib-cygwin.git/commitdiff
Only build _strtodg_r on targets supporting a distinct long double type
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 26 Nov 2015 09:13:53 +0000 (10:13 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 26 Nov 2015 09:13:53 +0000 (10:13 +0100)
* libc/stdlib/strtodg.c: Add ifdef to check _HAVE_LONG_DOUBLE and
_LDBL_EQ_DBL.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/ChangeLog
newlib/libc/stdlib/strtodg.c

index 0cae5cf507eaec3924494b7c2281f1e83c8ef260..35b8b211def3fc8d7b9c05a5d50b4e120287821a 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-26  Corinna Vinschen  <corinna@vinschen.de>
+
+       * libc/stdlib/strtodg.c: Add ifdef to check _HAVE_LONG_DOUBLE and
+       _LDBL_EQ_DBL.
+
 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
 
        * libc/stdlib/strtorx.c: Fix ifdef to check _LDBL_EQ_DBL.
index 594238a9e3d193c53235ad9d9ae7d228a0cb99ae..a6b32908beb9d3ca465ec8e24771d55215f7f74a 100644 (file)
@@ -39,6 +39,8 @@ THIS SOFTWARE.
 
 #include "locale.h"
 
+#if defined (_HAVE_LONG_DOUBLE) && !defined (_LDBL_EQ_DBL)
+
 #define USE_LOCALE
 
  static const int
@@ -1141,3 +1143,5 @@ _strtodg_r
                }
        return irv;
        }
+
+#endif /* _HAVE_LONG_DOUBLE && !_LDBL_EQ_DBL */
This page took 0.057762 seconds and 5 git commands to generate.