From 039b198462b36abc05e1d640cfc9b9232f6020e3 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Mon, 30 Sep 2019 17:14:38 -0700 Subject: [PATCH] IsDebuggerActive requires C_DEBUG --- src/gui/sdlmain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 03d730cea0a..a920713f43f 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -685,7 +685,9 @@ void GFX_SetIcon(void) #endif } +#if C_DEBUG bool IsDebuggerActive(void); +#endif extern std::string dosbox_title; @@ -739,7 +741,9 @@ void GFX_SetTitle(Bit32s cycles,Bits frameskip,Bits timing,bool paused){ } if (paused) strcat(title," PAUSED"); +#if C_DEBUG if (IsDebuggerActive()) strcat(title," DEBUGGER"); +#endif #if defined(C_SDL2) SDL_SetWindowTitle(sdl.window,title); #else