diff options
| -rw-r--r-- | tools/mknkboot.c | 12 | ||||
| -rw-r--r-- | utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj | 16 |
2 files changed, 20 insertions, 8 deletions
diff --git a/tools/mknkboot.c b/tools/mknkboot.c index e638404..6ac2642 100644 --- a/tools/mknkboot.c +++ b/tools/mknkboot.c @@ -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) diff --git a/utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj b/utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj index 69925a8..295fd91 100644 --- a/utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj +++ b/utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj @@ -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"
@@ -191,6 +191,10 @@ >
</File>
<File
+ RelativePath="..\..\..\..\tools\mknkboot.c"
+ >
+ </File>
+ <File
RelativePath="..\mtp_win32.c"
>
</File>
@@ -225,6 +229,10 @@ >
</File>
<File
+ RelativePath="..\..\..\..\tools\mknkboot.h"
+ >
+ </File>
+ <File
RelativePath="..\mtp_common.h"
>
</File>
|