From 72ca020f27930e456bdad7f36f1347fcdcffff70 Mon Sep 17 00:00:00 2001 From: jonny_jr9 Date: Sun, 10 Dec 2023 18:14:24 +0100 Subject: [PATCH] Fix 'redefinition error' on win. - compiles, runs --- include/render.h | 2 +- src/main.cpp | 2 +- src/render.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/render.h b/include/render.h index 6addb78..fd09479 100644 --- a/include/render.h +++ b/include/render.h @@ -9,4 +9,4 @@ void renderGame(); int CreateSDLWindow(); -void DestroyWindow(); \ No newline at end of file +void DestroySDLWindow(); \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 3e61233..c4366b3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) } } else { - DestroyWindow(); + DestroySDLWindow(); SDL_Quit(); return 0;} } diff --git a/src/render.c b/src/render.c index 86632d2..9a34d45 100644 --- a/src/render.c +++ b/src/render.c @@ -98,7 +98,7 @@ int CreateSDLWindow(){ return 0; } -void DestroyWindow(){ +void DestroySDLWindow(){ // Zerstöre das Fenster und beende SDL SDL_DestroyRenderer(renderer); SDL_DestroyWindow(window);