Replace WIN32 preprocessor with _WIN32
This commit is contained in:
Mahmood(Thunder07) 2017-02-21 15:47:18 +00:00
parent 510e0407d4
commit 75f7d0792b
5 changed files with 6 additions and 7 deletions

View File

@ -6,7 +6,7 @@
#include "IszImageStream.h"
#include "CsoImageStream.h"
#include "StdStream.h"
#ifdef WIN32
#ifdef _WIN32
#include "VolumeStream.h"
#else
#include "Posix_VolumeStream.h"
@ -43,7 +43,7 @@ DiskUtils::Iso9660Ptr DiskUtils::CreateDiskImageFromPath(const boost::filesystem
{
stream = std::make_shared<CCsoImageStream>(CreateImageStream(imagePath));
}
#ifdef WIN32
#ifdef _WIN32
else if(imagePath.string()[0] == '\\')
{
stream = std::make_shared<Framework::Win32::CVolumeStream>(imagePath.string()[4]);

View File

@ -48,7 +48,7 @@ struct MIPSSTATE
uint32 nDelayedJumpAddr;
uint32 nHasException;
#ifdef WIN32
#ifdef _WIN32
__declspec(align(16))
#else
__attribute__((aligned(16)))
@ -73,7 +73,7 @@ __attribute__((aligned(16)))
uint32 nFCSR;
//COP2
#ifdef WIN32
#ifdef _WIN32
__declspec(align(16))
#else
__attribute__((aligned(16)))

View File

@ -1,5 +1,5 @@
#include "MailBox.h"
#if defined(WIN32)
#if defined(_WIN32)
#include "win32/Win32Defs.h"
#endif

View File

@ -290,7 +290,7 @@ GLuint CGSH_OpenGL::PreparePalette(const TEX0& tex0)
void CGSH_OpenGL::DumpTexture(unsigned int nWidth, unsigned int nHeight, uint32 checksum)
{
#ifdef WIN32
#ifdef _WIN32
char sFilename[256];
for(unsigned int i = 0; i < UINT_MAX; i++)

View File

@ -44,7 +44,6 @@ add_definitions(-D_IOP_EMULATE_MODULES)
add_definitions(-DGLEW_STATIC)
if(WIN32)
add_definitions(-DWIN32) #TODO: replace WIN32 preprocessors with _WIN32
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
add_definitions(-D_LIB)