shithub: choc

Download patch

ref: cb49854d10054ecbc24f169015647eda7a997d1a
parent: 09f9ffb63f54516f327e63d35d5300b77aedc712
author: mfrancis95 <[email protected]>
date: Tue Oct 2 12:31:50 EDT 2018

Make sure SDL_HINT_NO_SIGNAL_HANDLERS is only set if using SDL >= 2.0.4

--- a/src/i_main.c
+++ b/src/i_main.c
@@ -43,7 +43,9 @@
 
     M_FindResponseFile();
 
+    #ifdef SDL_HINT_NO_SIGNAL_HANDLERS
     SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
+    #endif
 
     // start doom