How did I manage to check this in without actually trying to build

on Windows at all?! Fix some departures from the C standard, mostly
declaring variables after a statement has already been issued in the
same block. MSVC is picky about this where gcc is forgiving, and TBH
I'd change the latter given the choice.

[originally from svn r8166]
This commit is contained in:
Simon Tatham
2008-09-07 08:35:52 +00:00
parent f7ab0a4996
commit 4033458aff
3 changed files with 35 additions and 23 deletions

4
grid.h
View File

@ -10,9 +10,7 @@
#define PUZZLES_GRID_H
/* Useful macros */
#ifndef SQ
# define SQ(x) ( (x) * (x) )
#endif
#define SQ(x) ( (x) * (x) )
/* ----------------------------------------------------------------------
* Grid structures: