From c5584bcda601259876eddc5bcbe44ae7c1fbaaa7 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Thu, 2 Oct 2014 21:55:20 -0400 Subject: [PATCH] make sure SDL doesn't mess up main() --- src/cfilearchiver/cfilearchiver.cpp | 2 ++ src/scramble/scramble.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cfilearchiver/cfilearchiver.cpp b/src/cfilearchiver/cfilearchiver.cpp index 194b19e..f20d883 100644 --- a/src/cfilearchiver/cfilearchiver.cpp +++ b/src/cfilearchiver/cfilearchiver.cpp @@ -58,6 +58,8 @@ #include #endif +#define SDL_MAIN_HANDLED + #include "pstypes.h" #ifndef PLAT_UNIX diff --git a/src/scramble/scramble.cpp b/src/scramble/scramble.cpp index d678fe0..99ed419 100644 --- a/src/scramble/scramble.cpp +++ b/src/scramble/scramble.cpp @@ -64,6 +64,8 @@ #endif #include +#define SDL_MAIN_HANDLED + #include "pstypes.h" #include "encrypt.h" #include "scramble.h" -- 2.39.2