freebsd-ports/games/tetrinet/files/patch-tetris.h
Stefan Eßer 4f3a17bfc0 Fix build with -fno-common
While here fix compiler warnings including one out-of-bounds array
access.
2020-09-30 11:58:39 +00:00

11 lines
272 B
C

--- tetris.h.orig 2003-09-07 16:29:29 UTC
+++ tetris.h
@@ -50,7 +50,7 @@ typedef struct {
char shape[4][4]; /* Shape data for the piece */
} PieceData;
-PieceData piecedata[7][4];
+extern PieceData piecedata[7][4];
extern int current_piece, current_rotation;