From 15f70f527a0a753285e3fa871bd4018e547fbb05 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 26 Feb 2007 20:35:47 +0000 Subject: Dariusz Olszewski's changes to support compiling for PocketPC. This is mostly done with ifdefs in windows.c; so mkfiles.pl generates a new makefile (Makefile.wce) and Recipe enables it, but it's hardly any different from Makefile.vc apart from a few definitions at the top of the files. Currently the PocketPC build is not enabled in the build script, but with any luck I'll be able to do so reasonably soon. [originally from svn r7337] --- filling.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'filling.c') diff --git a/filling.c b/filling.c index fba86e5..6f6c6c3 100644 --- a/filling.c +++ b/filling.c @@ -47,7 +47,6 @@ #include #include -#include #include #include #include @@ -984,9 +983,8 @@ static game_state *execute_move(game_state *state, char *move) new_state->cheated = TRUE; } else { char *endptr; - const int i = strtol(move, &endptr, errno = 0); + const int i = strtol(move, &endptr, 0); int value; - if (errno == ERANGE) return NULL; if (endptr == move) return NULL; if (*endptr != '_') return NULL; move = endptr + 1; -- cgit v1.1