(MSVC 360) Build fixes
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32 && !defined(_XBOX)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#define BOOL int
|
||||
#ifdef _WIN32
|
||||
typedef int BOOL;
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
|
||||
@@ -859,14 +859,6 @@
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\boards\konami-qtai.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Profile|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Profile_FastCap|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\boards\KS7012.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">CompileAsC</CompileAs>
|
||||
@@ -963,6 +955,7 @@
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\boards\mihunche.c" />
|
||||
<ClCompile Include="..\..\..\..\boards\mmc1.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">CompileAsC</CompileAs>
|
||||
@@ -1251,6 +1244,7 @@
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\fceu-memory.c" />
|
||||
<ClCompile Include="..\..\..\..\fceu.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">CompileAsC</CompileAs>
|
||||
@@ -1467,14 +1461,6 @@
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\memory.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Profile|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Profile_FastCap|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release_LTCG|Xbox 360'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\movie.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='CodeAnalysis|Xbox 360'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Xbox 360'">CompileAsC</CompileAs>
|
||||
@@ -1836,4 +1822,4 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -413,9 +413,6 @@
|
||||
<ClCompile Include="..\..\..\..\boards\kof97.c">
|
||||
<Filter>Source Files\boards</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\boards\konami-qtai.c">
|
||||
<Filter>Source Files\boards</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\boards\KS7012.c">
|
||||
<Filter>Source Files\boards</Filter>
|
||||
</ClCompile>
|
||||
@@ -581,9 +578,6 @@
|
||||
<ClCompile Include="..\..\..\..\md5.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\memory.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\movie.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
@@ -617,6 +611,12 @@
|
||||
<ClCompile Include="..\..\..\..\wave.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\fceu-memory.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\boards\mihunche.c">
|
||||
<Filter>Source Files\boards</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\src-fceumm\input\suborkb.h">
|
||||
|
||||
@@ -65,8 +65,8 @@ void FASTAPASS(3) FCEU_memmove(void *d, void *s, uint32 l) {
|
||||
if (t & 3) { // Not 4-byte aligned and/or length is not a multiple of 4.
|
||||
uint8 *tmpd, *tmps;
|
||||
|
||||
tmpd = d;
|
||||
tmps = s;
|
||||
tmpd = (uint8*)d;
|
||||
tmps = (uint8*)s;
|
||||
|
||||
for (x = l; x; x--) { // This could be optimized further, though(more tests could be performed).
|
||||
*tmpd = *tmps;
|
||||
@@ -76,8 +76,8 @@ void FASTAPASS(3) FCEU_memmove(void *d, void *s, uint32 l) {
|
||||
} else {
|
||||
uint32 *tmpd, *tmps;
|
||||
|
||||
tmpd = d;
|
||||
tmps = s;
|
||||
tmpd = (uint32*)d;
|
||||
tmps = (uint32*)s;
|
||||
|
||||
for (x = l >> 2; x; x--) {
|
||||
*tmpd = *tmps;
|
||||
|
||||
@@ -34,7 +34,7 @@ void FCEUSS_CheckStates(void);
|
||||
typedef struct {
|
||||
void *v;
|
||||
uint32 s;
|
||||
char desc[4];
|
||||
char desc[5];
|
||||
} SFORMAT;
|
||||
|
||||
void ResetExState(void (*PreSave)(void), void (*PostSave)(void));
|
||||
|
||||
Reference in New Issue
Block a user