e532faf326
Turn redefininitions of a bunch of symbols into declarations. This fixes the build on FreeBSD 13+. While we are at it, use RLN to avoid a link to an absolute path.
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
--- src/main.c.orig 2023-04-13 09:22:55 UTC
|
|
+++ src/main.c
|
|
@@ -41,11 +41,11 @@ SDL_Thread *server_thread;
|
|
int key_joystick_mapping = 0;
|
|
|
|
#if 1
|
|
-boolean redraw[MAX_LEV_FIELDX + 2][MAX_LEV_FIELDY + 2];
|
|
+extern boolean redraw[MAX_LEV_FIELDX + 2][MAX_LEV_FIELDY + 2];
|
|
#else
|
|
-boolean redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
|
|
+extern boolean redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
|
|
#endif
|
|
-int redraw_x1 = 0, redraw_y1 = 0;
|
|
+extern int redraw_x1 = 0, redraw_y1 = 0;
|
|
|
|
short Feld[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
short MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
@@ -75,7 +75,7 @@ short ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
int RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
int PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
|
|
-int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
+extern int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
int GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
int GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
|
|
@@ -131,7 +131,7 @@ struct LevelInfo level, level_template;
|
|
struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
|
|
struct HiScore highscore[MAX_SCORE_ENTRIES];
|
|
struct TapeInfo tape;
|
|
-struct SetupInfo setup;
|
|
+extern struct SetupInfo setup;
|
|
struct GameInfo game;
|
|
struct GlobalInfo global;
|
|
struct BorderInfo border;
|