aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-25 12:58:47 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:22 -0700
commit3f5a1da9cced68a0c945a755f120da25f6d264e6 (patch)
treed9b8f81a02d5faff35c0cea92340656c94eb1a31 /expression.c
parent[PATCH] Use $(CC) everywhere in Makefile. (diff)
downloadsparse-3f5a1da9cced68a0c945a755f120da25f6d264e6.tar.gz
sparse-3f5a1da9cced68a0c945a755f120da25f6d264e6.tar.bz2
sparse-3f5a1da9cced68a0c945a755f120da25f6d264e6.zip
Add system-specific compatibility functions to make
up for various system deficiencies. This makes sparse easier to port to silly things like MinGW or Solaris. In particular: - strtold() is a C99 thing, not everybody has it - MinGW has problems with mmap(MAP_ANONYMOUS) and doesn't zero it. - st_ino/st_dev is POSIX identity testing, not supported by MinGW
Diffstat (limited to 'expression.c')
-rw-r--r--expression.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/expression.c b/expression.c
index c5cff5c..f0ec572 100644
--- a/expression.c
+++ b/expression.c
@@ -8,7 +8,6 @@
*
* This is the expression parsing part of parsing C.
*/
-#define _ISOC99_SOURCE
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
@@ -204,7 +203,7 @@ Eoverflow:
show_token(token));
return;
Float:
- expr->fvalue = strtold(str, &end);
+ expr->fvalue = string_to_ld(str, &end);
if (str == end)
goto Enoint;