From 3259c60b22598379e86fb4e20352f95f3282d0af Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 5 Dec 2019 21:06:49 +0100 Subject: [PATCH] Fix test compilation on mingw Including SDL2/SDL.h redefines main to SDL_main by default. --- app/tests/test_strutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/tests/test_strutil.c b/app/tests/test_strutil.c index 1489b1bd..ddc8399b 100644 --- a/app/tests/test_strutil.c +++ b/app/tests/test_strutil.c @@ -1,5 +1,6 @@ #include #include +#define SDL_MAIN_HANDLED // avoid to redefine main to SDL_main #include #include "util/str_util.h"