From a6405e1ef61a1e53e1bceaa8470263a9da8cbc34 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 1 Feb 2023 17:28:00 +0300
Subject: [PATCH] fixed build: define SDL_MAIN_HANDLED before including
SDL_main.h
Closes https://github.com/libsdl-org/sdl2-compat/pull/39
---
src/sdl3_include_wrapper.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 2d4906d..d5e3d2a 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -879,6 +879,7 @@
#define SDL_DISABLE_OLD_NAMES 1
#define __BUILDING_SDL2_COMPAT__ 1
#include <SDL3/SDL.h>
+#define SDL_MAIN_HANDLED 1
#include <SDL3/SDL_main.h>
#if !SDL_VERSION_ATLEAST(3,0,0)