From 42d1d2f7bdf6763d673cda04dddb856e9bd03e77 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 28 Nov 2011 18:21:46 -0800 Subject: [PATCH] define variable before it's first used. --- xwords4/common/comtypes.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xwords4/common/comtypes.h b/xwords4/common/comtypes.h index 0aafedf94..6f2707316 100644 --- a/xwords4/common/comtypes.h +++ b/xwords4/common/comtypes.h @@ -42,6 +42,11 @@ #define VSIZE(arr) (sizeof(arr)/sizeof(arr[0])) +#ifndef MAX_ROWS +# define MAX_ROWS 16 +#endif +#define MAX_COLS MAX_ROWS + #if MAX_COLS > 16 # define STREAM_VERS_BIGBOARD 0x12 #endif @@ -146,10 +151,6 @@ typedef enum { } XWTimerReason; #define MAX_NUM_PLAYERS 4 -#ifndef MAX_ROWS -# define MAX_ROWS 16 -#endif -#define MAX_COLS MAX_ROWS #ifdef EIGHT_TILES # define MAX_TRAY_TILES 8 #else