aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-07 08:35:52 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-07 08:35:52 +0000
commit4033458aff500635a10c6659e6e1c6fe0db687e9 (patch)
treee6e481bac088fbbceb176470c88e78f011396e67 /grid.h
parentf7ab0a4996deb231165257a502a023c3024c3151 (diff)
downloadpuzzles-4033458aff500635a10c6659e6e1c6fe0db687e9.zip
puzzles-4033458aff500635a10c6659e6e1c6fe0db687e9.tar.gz
puzzles-4033458aff500635a10c6659e6e1c6fe0db687e9.tar.bz2
puzzles-4033458aff500635a10c6659e6e1c6fe0db687e9.tar.xz
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]
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h4
1 files changed, 1 insertions, 3 deletions
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: