From 2cff2ae137db42b3eb2e5719958579469e615f1a Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Thu, 27 May 2021 03:39:18 +0200 Subject: [PATCH] DebuggerServer: should now also work with SDL1.2 --- neo/tools/debugger/debugger.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neo/tools/debugger/debugger.cpp b/neo/tools/debugger/debugger.cpp index 55b2f472..cb7afd34 100644 --- a/neo/tools/debugger/debugger.cpp +++ b/neo/tools/debugger/debugger.cpp @@ -166,7 +166,12 @@ bool DebuggerServerInit ( void ) } // Start the debugger server thread +#if SDL_VERSION_ATLEAST(2, 0, 0) gDebuggerServerThread = SDL_CreateThread( DebuggerServerThread, "DebuggerServer", NULL ); +#else // SDL 1.2 + gDebuggerServerThread = SDL_CreateThread( DebuggerServerThread, NULL ); +#endif + return true; }