mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Since the lack of this has caused portability issues in the past:
add "-ansi -pedantic" to the main Unix makefile, and clean up a few minor problems pointed out thereby. [originally from svn r8175]
This commit is contained in:
3
tents.c
3
tents.c
@ -1803,7 +1803,8 @@ static void game_compute_size(game_params *params, int tilesize,
|
||||
int *x, int *y)
|
||||
{
|
||||
/* fool the macros */
|
||||
struct dummy { int tilesize; } dummy = { tilesize }, *ds = &dummy;
|
||||
struct dummy { int tilesize; } dummy, *ds = &dummy;
|
||||
dummy.tilesize = tilesize;
|
||||
|
||||
*x = TLBORDER + BRBORDER + TILESIZE * params->w;
|
||||
*y = TLBORDER + BRBORDER + TILESIZE * params->h;
|
||||
|
Reference in New Issue
Block a user