diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp index 9ba6c776a4..72052eee96 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX.cpp @@ -277,9 +277,11 @@ int ReadOutPBs(u32 pbs_address, AXParamBlock* _pPBs, int _num) { pDest[p] = Common::swap16(pSrc[p]); +#if defined(HAVE_WX) && HAVE_WX #if defined(_DEBUG) || defined(DEBUGFAST) if(m_frame) m_frame->gLastBlock = blockAddr + p*2 + 2; // save last block location #endif +#endif } blockAddr = (_pPBs[i].next_pb_hi << 16) | _pPBs[i].next_pb_lo; count++; diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h index 5de933e039..8115345db4 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h @@ -62,9 +62,11 @@ inline int ReadOutPBsWii(u32 pbs_address, ParamBlockType& _pPBs, int _num) if(p == 6 || p == 7) pDest[p] = pSrc[p]; // control for the u32 else pDest[p] = Common::swap16(pSrc[p]); +#if defined(HAVE_WX) && HAVE_WX #if defined(_DEBUG) || defined(DEBUGFAST) if(m_frame) m_frame->gLastBlock = blockAddr + p*2 + 2; // save last block location #endif +#endif } _pPBs[i].mixer_control = Common::swap32(_pPBs[i].mixer_control); diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp index d1d3307098..48067cc762 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/main.cpp @@ -15,6 +15,8 @@ // Official SVN repository and contact information can be found at // http://code.google.com/p/dolphin-emu/ +#include + #include "Globals.h" #if defined(HAVE_WX) && HAVE_WX #include "Logging/Console.h" // for startConsoleWin, wprintf, GetConsoleHwnd @@ -214,11 +216,11 @@ void DSP_Initialize(DSPInitialize _dspInitialize) gpName = g_dspInitialize.pName(); // save the game name globally for (int i = 0; i < gpName.length(); ++i) // and fix it { - wprintf("%c", gpName[i]); + wprintf(L"%c", gpName[i]); std::cout << gpName[i]; if (gpName[i] == ':') gpName[i] = ' '; } - wprintf("\n"); + wprintf(L"\n"); #endif CDSPHandler::CreateInstance(); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 5ef319f80c..bc722fc422 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -17,6 +17,8 @@ #include "Globals.h" +#include + #ifdef _WIN32 #include "OS/Win32.h" #endif