forked from len0rd/rockbox
Make beastpatcher build with VS2005 again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22821 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0cab10e2f5
commit
55cd14f875
2 changed files with 20 additions and 8 deletions
|
|
@ -42,8 +42,12 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#if defined(_MSC_VER)
|
||||
#include "pstdint.h"
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
#include "mknkboot.h"
|
||||
|
||||
|
|
@ -118,10 +122,10 @@ static uint32_t dualboot[] =
|
|||
|
||||
static void put_uint32le(uint32_t x, unsigned char* p)
|
||||
{
|
||||
p[0] = x & 0xff;
|
||||
p[1] = (x >> 8) & 0xff;
|
||||
p[2] = (x >> 16) & 0xff;
|
||||
p[3] = (x >> 24) & 0xff;
|
||||
p[0] = (unsigned char)(x & 0xff);
|
||||
p[1] = (unsigned char)((x >> 8) & 0xff);
|
||||
p[2] = (unsigned char)((x >> 16) & 0xff);
|
||||
p[3] = (unsigned char)((x >> 24) & 0xff);
|
||||
}
|
||||
|
||||
#if !defined(BEASTPATCHER)
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@
|
|||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="c:\wmsdk\wmfsdk95\include;c:\wmsdk\wmfsdk95\wmdm\inc"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;MTP_NODLL;WITH_BOOTOBJS"
|
||||
AdditionalIncludeDirectories=""$(ProjectDir)..";"$(ProjectDir)..\..\..\..\tools";c:\wmsdk\wmfsdk95\include;c:\wmsdk\wmfsdk95\wmdm\inc"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;MTP_NODLL;WITH_BOOTOBJS;BEASTPATCHER"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="0"
|
||||
|
|
@ -120,8 +120,8 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="c:\wmsdk\wmfsdk95\include;c:\wmsdk\wmfsdk95\wmdm\inc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;MTP_NODLL"
|
||||
AdditionalIncludeDirectories=""$(ProjectDir)..";"$(ProjectDir)..\..\..\..\tools";c:\wmsdk\wmfsdk95\include;c:\wmsdk\wmfsdk95\wmdm\inc"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;MTP_NODLL;BEASTPATCHER"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
|
|
@ -190,6 +190,10 @@
|
|||
RelativePath="..\main.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\tools\mknkboot.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\mtp_win32.c"
|
||||
>
|
||||
|
|
@ -224,6 +228,10 @@
|
|||
RelativePath="..\beastpatcher.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\tools\mknkboot.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\mtp_common.h"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue