Define SDL_MAIN_HANDLED in all tests
Each test defines its own main() function. If this flag is not set, then SDL redefines it to SDL_main(), causing compilation failures.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#define SDL_MAIN_HANDLED // avoid to redefine main to SDL_main
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#include "util/str_util.h"
|
||||
|
||||
Reference in New Issue
Block a user