From f4486cc6ad2ce55f118f7c9d6dc99bccdbe9ee9b Mon Sep 17 00:00:00 2001 From: qeed Date: Sat, 8 Aug 2009 19:22:23 +0000 Subject: [PATCH] Properly fix to get unix compiling it --- src/debug.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/debug.cpp b/src/debug.cpp index 784ceb4b..3b619915 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -611,7 +611,7 @@ void breakpoint() { //bbit edited: this is the end of the inserted code int debug_tracing; -//int logging; //UGETAB: This is turning it into a local variable. Prevents logging. + void DebugCycle() { if (scanline == 240) @@ -635,7 +635,11 @@ void DebugCycle() { //mbg 6/30/06 - this was commented out when i got here. i dont understand it anyway //if(logging || (hMemView && (EditingMode == 2))) LogInstruction(); - + +//This needs to be windows only or else the linux build system will fail since logging is declared in a +//windows source file +#ifdef WIN32 extern volatile int logging; //UGETAB: This is required to be an extern, because the info isn't set here if(logging) FCEUD_TraceInstruction(); +#endif }