From d2c1f3116eb05fd0ecb8cba3972b5afdad4589d9 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 11 Feb 2023 23:08:00 +0100 Subject: Don't define globals in header, use extern statements instead Signed-off-by: Olivier Gayot --- src/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index d2ef531..346c130 100644 --- a/src/main.c +++ b/src/main.c @@ -2,6 +2,19 @@ #define shift_args(argc, argv) *argv++ +SDL_Surface *scr; +SDL_Surface *surf_number[9]; +SDL_Surface *bmb_surf; +SDL_Surface *hidden_surf; +SDL_Surface *selection_surf; +SDL_Surface *flag_surf; +SDL_Surface *wrong_flag; + +SDL_mutex *mutex; + +unsigned int discovered; +unsigned int g_flags; + static void reveal_bombs(map_t *map) { SDL_Rect rect; -- cgit v1.2.3