From 7bfcb263529f54b6f97004a87a4f088a503651cc Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 30 Jul 2024 18:15:31 +0300 Subject: [PATCH] move applcation callback declarations to game_api.h to ease warnings --- src/game_api.h | 5 +++-- src/main.c | 6 +----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/game_api.h b/src/game_api.h index 49760d2..80f6a12 100644 --- a/src/game_api.h +++ b/src/game_api.h @@ -8,7 +8,8 @@ #include "audio.h" #include "util.h" -#include - +/* application provided */ +extern void game_tick(void); +extern void game_end(void); #endif diff --git a/src/main.c b/src/main.c index 9119508..5da23bb 100644 --- a/src/main.c +++ b/src/main.c @@ -3,6 +3,7 @@ #include "input.h" #include "util.h" #include "textures.h" +#include "game_api.h" #include "audio/internal_api.h" #include @@ -19,11 +20,6 @@ #include -/* application provided */ -extern void game_tick(void); -extern void game_end(void); - - static void poll_events(void) { SDL_Event e;