spu2-x: Use _WIN32 for Windows preprocessor macro

This commit is contained in:
Jonathan Li 2016-01-27 22:49:14 +00:00
parent 04a8efd8c3
commit d5e56c7e76
3 changed files with 11 additions and 11 deletions

View File

@ -26,7 +26,7 @@
#include <vector>
#ifdef __WIN32__
#ifdef _WIN32
#include "pa_win_wasapi.h"
#endif
@ -246,7 +246,7 @@ public:
break;
}
#ifdef __WIN32__
#ifdef _WIN32
PaWasapiStreamInfo info = {
sizeof(PaWasapiStreamInfo),
paWASAPI,
@ -344,7 +344,7 @@ public:
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
#ifdef WIN32
#ifdef _WIN32
private:
bool _ConfigProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
@ -666,7 +666,7 @@ int PaCallback( const void *inputBuffer, void *outputBuffer,
return PA.ActualPaCallback->ReadSamples(inputBuffer,outputBuffer,framesPerBuffer,timeInfo,statusFlags,userData);
}
#ifdef WIN32
#ifdef _WIN32
BOOL CALLBACK Portaudio::ConfigProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
return PA._ConfigProc( hWnd, uMsg, wParam, lParam );

View File

@ -109,7 +109,7 @@ bool Running = false;
int conprintf(const char* fmt, ...)
{
#ifdef WIN32
#ifdef _WIN32
char s[1024];
va_list list;
@ -156,7 +156,7 @@ void dummy7()
u64 HighResFrequency()
{
u64 freq;
#ifdef WIN32
#ifdef _WIN32
QueryPerformanceFrequency((LARGE_INTEGER*)&freq);
#else
// TODO
@ -167,7 +167,7 @@ u64 HighResFrequency()
u64 HighResCounter()
{
u64 time;
#ifdef WIN32
#ifdef _WIN32
QueryPerformanceCounter((LARGE_INTEGER*)&time);
#else
// TODO
@ -203,7 +203,7 @@ u32 WaitSync( u32 TargetCycle )
return delta;
}
#ifdef WIN32
#ifdef _WIN32
BOOL WINAPI HandlerRoutine(DWORD dwCtrlType)
{
Running = false;
@ -219,7 +219,7 @@ EXPORT_C_(void) s2r_replay(HWND hwnd, HINSTANCE hinst, LPSTR filename, int nCmdS
Running = true;
#ifdef WIN32
#ifdef _WIN32
AllocConsole();
SetConsoleCtrlHandler(HandlerRoutine, TRUE);
@ -309,7 +309,7 @@ Finish:
conprintf("Finished playing %s file (%d cycles, %d events).",filename,CurrentIOPCycle,events);
#ifdef WIN32
#ifdef _WIN32
FreeConsole();
#endif

View File

@ -376,7 +376,7 @@ __forceinline void TimeUpdate(u32 cClocks)
}
// Visual debug display showing all core's activity! Disabled via #define on release builds.
#ifdef __WIN32__
#ifdef _WIN32
UpdateDebugDialog();
#endif