summaryrefslogtreecommitdiffstats
path: root/gl/m4/c-strtod.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/c-strtod.m4')
-rw-r--r--gl/m4/c-strtod.m424
1 files changed, 12 insertions, 12 deletions
diff --git a/gl/m4/c-strtod.m4 b/gl/m4/c-strtod.m4
index ba95435..41cf18e 100644
--- a/gl/m4/c-strtod.m4
+++ b/gl/m4/c-strtod.m4
@@ -1,6 +1,6 @@
1# c-strtod.m4 serial 11 1# c-strtod.m4 serial 11
2 2
3# Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation, Inc. 3# Copyright (C) 2004-2006, 2009-2010 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# with or without modifications, as long as this notice is preserved.
@@ -14,17 +14,17 @@ AC_DEFUN([gl_C99_STRTOLD],
14 [AC_LINK_IFELSE( 14 [AC_LINK_IFELSE(
15 [AC_LANG_PROGRAM( 15 [AC_LANG_PROGRAM(
16 [[/* On HP-UX before 11.23, strtold returns a struct instead of 16 [[/* On HP-UX before 11.23, strtold returns a struct instead of
17 long double. Reject implementations like that, by requiring 17 long double. Reject implementations like that, by requiring
18 compatibility with the C99 prototype. */ 18 compatibility with the C99 prototype. */
19 #include <stdlib.h> 19 #include <stdlib.h>
20 static long double (*p) (char const *, char **) = strtold; 20 static long double (*p) (char const *, char **) = strtold;
21 static long double 21 static long double
22 test (char const *nptr, char **endptr) 22 test (char const *nptr, char **endptr)
23 { 23 {
24 long double r; 24 long double r;
25 r = strtold (nptr, endptr); 25 r = strtold (nptr, endptr);
26 return r; 26 return r;
27 }]], 27 }]],
28 [[return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;]])], 28 [[return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;]])],
29 [gl_cv_func_c99_strtold=yes], 29 [gl_cv_func_c99_strtold=yes],
30 [gl_cv_func_c99_strtold=no])]) 30 [gl_cv_func_c99_strtold=no])])