From 25842deac56ce4b14e7e69197c4e1383cbb5d034 Mon Sep 17 00:00:00 2001 From: nakeee Date: Mon, 5 Jan 2009 23:30:44 +0000 Subject: [PATCH] compile fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1799 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/EventHandler.cpp | 9 +++++---- Source/Plugins/Plugin_nJoy_Testing/Src/SConscript | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Source/Core/InputCommon/Src/EventHandler.cpp b/Source/Core/InputCommon/Src/EventHandler.cpp index 9565e0bce6..d3cdcc38da 100644 --- a/Source/Core/InputCommon/Src/EventHandler.cpp +++ b/Source/Core/InputCommon/Src/EventHandler.cpp @@ -20,11 +20,12 @@ EventHandler::~EventHandler() { } EventHandler *EventHandler::GetInstance() { - fprintf(stderr, "handler instance %p\n", m_Instance); + static EventHandler* m_Instance2 = 0; + fprintf(stderr, "handler instance %p\n", m_Instance2); - if (! m_Instance) - m_Instance = new EventHandler(); - return m_Instance; + if (! m_Instance2) + m_Instance2 = new EventHandler(); + return m_Instance2; } void EventHandler::Destroy() { diff --git a/Source/Plugins/Plugin_nJoy_Testing/Src/SConscript b/Source/Plugins/Plugin_nJoy_Testing/Src/SConscript index 1cfc4b426e..00c940c08e 100644 --- a/Source/Plugins/Plugin_nJoy_Testing/Src/SConscript +++ b/Source/Plugins/Plugin_nJoy_Testing/Src/SConscript @@ -13,10 +13,10 @@ files = [ 'nJoy.cpp', ] -if not env['HAVE_WX'] - files.Append('GUI/AboutBox.cpp', - 'GUI/ConfigBox.cpp', - ) +if env['HAVE_WX']: + files +=[ 'GUI/AboutBox.cpp', + 'GUI/ConfigBox.cpp', + ] padenv = env.Clone() padenv.Append(