mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
LogManager: Opt out of <wx/datetime.h> even if you have wx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1765 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -36,6 +36,9 @@
|
|||||||
#define LOGGING
|
#define LOGGING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Allow wxWidgets in Core
|
||||||
|
//#define WX_CORE
|
||||||
|
|
||||||
#include "../../../PluginSpecs/CommonTypes.h"
|
#include "../../../PluginSpecs/CommonTypes.h"
|
||||||
#define HAVE_WIIUSE 1
|
#define HAVE_WIIUSE 1
|
||||||
#define HAVE_WX 1
|
#define HAVE_WX 1
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "PowerPC/SymbolDB.h" // for g_symbolDB
|
#include "PowerPC/SymbolDB.h" // for g_symbolDB
|
||||||
#include "Debugger/Debugger_SymbolMap.h"
|
#include "Debugger/Debugger_SymbolMap.h"
|
||||||
|
|
||||||
#if defined(HAVE_WX) && HAVE_WX // wxWidgets
|
#if defined(HAVE_WX) && HAVE_WX && defined(WX_CORE) // wxWidgets
|
||||||
#include <wx/datetime.h> // for the timestamps
|
#include <wx/datetime.h> // for the timestamps
|
||||||
#endif
|
#endif
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
@ -238,7 +238,7 @@ void LogManager::Log(LogTypes::LOG_TYPE _type, const char *_fmt, ...)
|
|||||||
static u32 count = 0;
|
static u32 count = 0;
|
||||||
char* Msg2 = (char*)alloca(strlen(_fmt)+512);
|
char* Msg2 = (char*)alloca(strlen(_fmt)+512);
|
||||||
|
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
#if defined(HAVE_WX) && HAVE_WX && defined(WX_CORE)
|
||||||
wxDateTime datetime = wxDateTime::UNow(); // get timestamp
|
wxDateTime datetime = wxDateTime::UNow(); // get timestamp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -272,13 +272,13 @@ void LogManager::Log(LogTypes::LOG_TYPE _type, const char *_fmt, ...)
|
|||||||
const char *eol = "\n";
|
const char *eol = "\n";
|
||||||
if (Index > 0)
|
if (Index > 0)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
#if defined(HAVE_WX) && HAVE_WX && defined(WX_CORE)
|
||||||
sprintf(Msg2, "%i %02i:%02i:%03i: %x %s (%s, %08x) : %s%s",
|
sprintf(Msg2, "%i %02i:%02i:%03i: %x %s (%s, %08x) : %s%s",
|
||||||
#else
|
#else
|
||||||
sprintf(Msg2, "%i %llu: %x %s (%s, %08x) : %s%s",
|
sprintf(Msg2, "%i %llu: %x %s (%s, %08x) : %s%s",
|
||||||
#endif
|
#endif
|
||||||
++count,
|
++count,
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
#if defined(HAVE_WX) && HAVE_WX && defined(WX_CORE)
|
||||||
datetime.GetMinute(), datetime.GetSecond(), datetime.GetMillisecond(),
|
datetime.GetMinute(), datetime.GetSecond(), datetime.GetMillisecond(),
|
||||||
#else
|
#else
|
||||||
Common::Timer::GetTimeSinceJan1970(),
|
Common::Timer::GetTimeSinceJan1970(),
|
||||||
|
Reference in New Issue
Block a user