diff options
| author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-12 00:49:51 +0000 |
|---|---|---|
| committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-12 00:49:51 +0000 |
| commit | fbf1e60f477460205c2002bb34b87f9e1e3b0faf (patch) | |
| tree | 96d568de54259a8b1f8e6a88dbb533037ef730e5 /lib/strtod.c | |
| parent | dbe8fb585697e3a7c073cef083ff2fb027b76968 (diff) | |
| download | monitoring-plugins-fbf1e60f477460205c2002bb34b87f9e1e3b0faf.tar.gz | |
Update to using coreutils 5.2.1 libraries and snprintf.c from samba 3.0.8
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@895 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/strtod.c')
| -rw-r--r-- | lib/strtod.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/strtod.c b/lib/strtod.c index 10edb5cf..161f97a7 100644 --- a/lib/strtod.c +++ b/lib/strtod.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright (C) 1991, 1992, 1997, 1999 Free Software Foundation, Inc. | 1 | /* Copyright (C) 1991, 1992, 1997, 1999, 2003 Free Software Foundation, Inc. |
| 2 | 2 | ||
| 3 | This program is free software; you can redistribute it and/or modify | 3 | This program is free software; you can redistribute it and/or modify |
| 4 | it under the terms of the GNU General Public License as published by | 4 | it under the terms of the GNU General Public License as published by |
| @@ -37,22 +37,9 @@ extern int errno; | |||
| 37 | 37 | ||
| 38 | #include <math.h> | 38 | #include <math.h> |
| 39 | 39 | ||
| 40 | #if HAVE_FLOAT_H | 40 | #include <float.h> |
| 41 | # include <float.h> | 41 | #include <stdlib.h> |
| 42 | #else | 42 | #include <string.h> |
| 43 | # define DBL_MAX 1.7976931348623159e+308 | ||
| 44 | # define DBL_MIN 2.2250738585072010e-308 | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #if STDC_HEADERS | ||
| 48 | # include <stdlib.h> | ||
| 49 | # include <string.h> | ||
| 50 | #else | ||
| 51 | # define NULL 0 | ||
| 52 | # ifndef HUGE_VAL | ||
| 53 | # define HUGE_VAL HUGE | ||
| 54 | # endif | ||
| 55 | #endif | ||
| 56 | 43 | ||
| 57 | /* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the | 44 | /* Convert NPTR to a double. If ENDPTR is not NULL, a pointer to the |
| 58 | character after the last one used in the number is put in *ENDPTR. */ | 45 | character after the last one used in the number is put in *ENDPTR. */ |
