From: simon Date: Mon, 7 Apr 2008 17:12:21 +0000 (+0000) Subject: Pedantic tweaks to allow successful compilation on Windows. (gcc X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/1cc153ffd70621148c348fbaa90cb9bc65c55010 Pedantic tweaks to allow successful compilation on Windows. (gcc failed to point out a declaration after a statement, and gcc's linker was clever enough to optimise the call to divvy_rectangle() out of solosolver so that I didn't have to include divvy.c in that.) git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7975 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/solo.R b/solo.R index 31d767e..594e014 100644 --- a/solo.R +++ b/solo.R @@ -6,8 +6,8 @@ solo : [X] GTK COMMON SOLO solo-icon|no-icon solo : [G] WINDOWS COMMON SOLO solo.res|noicon.res -solosolver : [U] solo[STANDALONE_SOLVER] dsf STANDALONE -solosolver : [C] solo[STANDALONE_SOLVER] dsf STANDALONE +solosolver : [U] solo[STANDALONE_SOLVER] divvy dsf STANDALONE +solosolver : [C] solo[STANDALONE_SOLVER] divvy dsf STANDALONE ALL += SOLO diff --git a/solo.c b/solo.c index e9f1804..bac51aa 100644 --- a/solo.c +++ b/solo.c @@ -2571,6 +2571,8 @@ static char *validate_desc(game_params *params, char *desc) return "Too much data to fit in grid"; if (params->r == 1) { + int pos; + /* * Now we expect a suffix giving the jigsaw block * structure. Parse it and validate that it divides the @@ -2579,7 +2581,7 @@ static char *validate_desc(game_params *params, char *desc) */ if (*desc != ',') return "Expected jigsaw block structure in game description"; - int pos = 0; + pos = 0; dsf = snew_dsf(area); desc++;