From 16e1dbb8ce75855463eb266663e58e424161cca6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 11 Jul 2012 04:28:51 +0200 Subject: [PATCH] (360) Fix build --- msvc-2010-360/mvc-2010-360.vcxproj | 14 +++++++------- src/port.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/msvc-2010-360/mvc-2010-360.vcxproj b/msvc-2010-360/mvc-2010-360.vcxproj index 19f3908e..e0446347 100644 --- a/msvc-2010-360/mvc-2010-360.vcxproj +++ b/msvc-2010-360/mvc-2010-360.vcxproj @@ -126,7 +126,7 @@ false $(OutDir)$(ProjectName).pch MultiThreadedDebug - _DEBUG;_XBOX;_LIB;;__LIBRETRO__;SPEEDHAX;__POWERPC__;__ppc__;WORDS_BIGENDIAN;BLARGG_BIG_ENDIAN;INLINE=_inline;%(PreprocessorDefinitions) + _DEBUG;_XBOX;_LIB;;__LIBRETRO__;SPEEDHAX;__POWERPC__;__ppc__;WORDS_BIGENDIAN;BLARGG_BIG_ENDIAN;INLINE=_inline;%(PreprocessorDefinitions);_XBOX360 Callcap $(SolutionDir)\..\libretro;$(SolutionDir)\..\src;$(SolutionDir)\..\src\common;$(SolutionDir)\..\src\gb;$(SolutionDir)\..\src\gba;$(SolutionDir)\..\utils\zlib;%(AdditionalIncludeDirectories) @@ -146,7 +146,7 @@ false $(OutDir)$(ProjectName).pch MultiThreadedDebug - _DEBUG;_XBOX;_LIB;%(PreprocessorDefinitions) + _DEBUG;_XBOX;_LIB;%(PreprocessorDefinitions);_XBOX360 Callcap $(SolutionDir)\..\libretro;$(SolutionDir)\..\src;$(SolutionDir)\..\src\common;$(SolutionDir)\..\src\gb;$(SolutionDir)\..\src\gba;$(SolutionDir)\..\utils\zlib;%(AdditionalIncludeDirectories) @@ -167,7 +167,7 @@ false $(OutDir)$(ProjectName).pch MultiThreaded - NDEBUG;_XBOX;PROFILE;_LIB;%(PreprocessorDefinitions) + NDEBUG;_XBOX;PROFILE;_LIB;%(PreprocessorDefinitions);_XBOX360 Callcap $(SolutionDir)\..\libretro;$(SolutionDir)\..\src;$(SolutionDir)\..\src\common;$(SolutionDir)\..\src\gb;$(SolutionDir)\..\src\gba;$(SolutionDir)\..\utils\zlib;%(AdditionalIncludeDirectories) @@ -192,7 +192,7 @@ false $(OutDir)$(ProjectName).pch MultiThreaded - NDEBUG;_XBOX;PROFILE;FASTCAP;_LIB;%(PreprocessorDefinitions) + NDEBUG;_XBOX;PROFILE;FASTCAP;_LIB;%(PreprocessorDefinitions);_XBOX360 $(SolutionDir)\..\libretro;$(SolutionDir)\..\src;$(SolutionDir)\..\src\common;$(SolutionDir)\..\src\gb;$(SolutionDir)\..\src\gba;$(SolutionDir)\..\utils\zlib;%(AdditionalIncludeDirectories) @@ -214,7 +214,7 @@ false $(OutDir)$(ProjectName).pch MultiThreaded - NDEBUG;_XBOX;_LIB;__LIBRETRO__;SPEEDHAX;__POWERPC__;__ppc__;WORDS_BIGENDIAN;BLARGG_BIG_ENDIAN;INLINE=_inline;USE_CACHE_PREFETCH;BRANCHLESS_GBA_GFX;%(PreprocessorDefinitions) + NDEBUG;_XBOX;_LIB;__LIBRETRO__;SPEEDHAX;__POWERPC__;__ppc__;WORDS_BIGENDIAN;BLARGG_BIG_ENDIAN;INLINE=_inline;USE_CACHE_PREFETCH;BRANCHLESS_GBA_GFX;%(PreprocessorDefinitions);_XBOX360 $(SolutionDir)\..\libretro;$(SolutionDir)\..\src;$(SolutionDir)\..\src\common;$(SolutionDir)\..\src\gb;$(SolutionDir)\..\src\gba;$(SolutionDir)\..\utils\zlib;%(AdditionalIncludeDirectories) true true @@ -238,7 +238,7 @@ false $(OutDir)$(ProjectName).pch MultiThreaded - NDEBUG;_XBOX;LTCG;_LIB;__LIBRETRO__;USE_CACHE_PREFETCH;BRANCHLESS_GBA_GFX;%(PreprocessorDefinitions) + NDEBUG;_XBOX;LTCG;_LIB;__LIBRETRO__;USE_CACHE_PREFETCH;BRANCHLESS_GBA_GFX;%(PreprocessorDefinitions);_XBOX360 $(SolutionDir)\..\libretro;$(SolutionDir)\..\src;$(SolutionDir)\..\src\common;$(SolutionDir)\..\src\gb;$(SolutionDir)\..\src\gba;$(SolutionDir)\..\utils\zlib;%(AdditionalIncludeDirectories) @@ -250,4 +250,4 @@ - + \ No newline at end of file diff --git a/src/port.h b/src/port.h index e1ddf105..c8fd7cfa 100644 --- a/src/port.h +++ b/src/port.h @@ -46,7 +46,7 @@ #define READ32LE( base ) ({unsigned ppc_lwbrx_; asm( "lwbrx %0,0,%1" : "=r" (ppc_lwbrx_) : "r" (base), "0" (ppc_lwbrx_) ); ppc_lwbrx_;}) #define WRITE16LE( base, value ) ({asm( "sthbrx %0,0,%1" : : "r" (value), "r" (base) );}) #define WRITE32LE( base, value) ({asm( "stwbrx %0,0,%1" : : "r" (value), "r" (base) );}) -#elif _XBOX360 +#elif defined(_XBOX360) #define READ16LE( base) _byteswap_ushort(*((u16 *)(base))) #define READ32LE( base) _byteswap_ulong(*((u32 *)(base))) #define WRITE16LE( base, value) *((u16 *)base) = _byteswap_ushort((value))