diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-01-04 16:52:28 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-01-04 16:52:28 +0000 |
| commit | b7f1e937bbbb5b50f65cb8d5180ac1d7cbc5d941 (patch) | |
| tree | 2bd78281c0cca9c69add988e7adf8ecfb09620bc /Source/Core/Common | |
| parent | 034986a7ac3723809ba87d81b2b3230df04a1605 (diff) | |
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
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/Common.h | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h index 3c9ed887b3..a0fbeae3ea 100644 --- a/Source/Core/Common/Src/Common.h +++ b/Source/Core/Common/Src/Common.h @@ -24,24 +24,27 @@ #define CHECK_HEAP_INTEGRITY() #ifdef _WIN32 -#ifdef _DEBUG -#include <crtdbg.h> -#undef CHECK_HEAP_INTEGRITY -#define CHECK_HEAP_INTEGRITY() {if (!_CrtCheckMemory()) PanicAlert("memory corruption detected. see log.");} -#endif + #ifdef _DEBUG + #include <crtdbg.h> + #undef CHECK_HEAP_INTEGRITY + #define CHECK_HEAP_INTEGRITY() {if (!_CrtCheckMemory()) PanicAlert("memory corruption detected. see log.");} + #endif -/* Turn on logging with debugging, _DEBUG and DEBUGFAST are still added through - preprocessor definitions only */ -#if defined(_DEBUG) || defined(DEBUGFAST) - #define LOGGING -#endif + /* Turn on logging with debugging, _DEBUG and DEBUGFAST are still added through + preprocessor definitions only */ + #if defined(_DEBUG) || defined(DEBUGFAST) + #define LOGGING + #endif + + // Allow wxWidgets in Core + //#define WX_CORE -#include "../../../PluginSpecs/CommonTypes.h" -#define HAVE_WIIUSE 1 -#define HAVE_WX 1 + #include "../../../PluginSpecs/CommonTypes.h" + #define HAVE_WIIUSE 1 + #define HAVE_WX 1 #else -#include "CommonTypes.h" -#include "Config.h" + #include "CommonTypes.h" + #include "Config.h" #endif #include <stdlib.h> |
