From 4033458aff500635a10c6659e6e1c6fe0db687e9 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 7 Sep 2008 08:35:52 +0000 Subject: 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] --- grid.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'grid.h') diff --git a/grid.h b/grid.h index 0116074..217f6da 100644 --- a/grid.h +++ b/grid.h @@ -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: -- cgit v1.1