summaryrefslogtreecommitdiffstats
path: root/gl/m4/c-strtod.m4
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-08 01:11:46 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-13 01:26:35 (GMT)
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/m4/c-strtod.m4
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
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])])