foxygit / doom Log in
commit cb49854d10054ecbc24f169015647eda7a997d1a
Author:     mfrancis95 <mikefrancis95@gmail.com>
AuthorDate: Tue Oct 2 16:31:50 2018 -0400
Commit:     mfrancis95 <mikefrancis95@gmail.com>
CommitDate: Tue Oct 2 16:31:50 2018 -0400

    Make sure SDL_HINT_NO_SIGNAL_HANDLERS is only set if using SDL >= 2.0.4
---
 src/i_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/i_main.c b/src/i_main.c
index cac65db4..8ea237b1 100644
--- a/src/i_main.c
+++ b/src/i_main.c
@@ -43,7 +43,9 @@ int main(int argc, char **argv)

     M_FindResponseFile();

+    #ifdef SDL_HINT_NO_SIGNAL_HANDLERS
     SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
+    #endif

     // start doom