From 55cd14f87572150e6fb4e9e9135e344883f667e2 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Thu, 24 Sep 2009 20:46:19 +0000 Subject: Make beastpatcher build with VS2005 again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22821 a1c6a512-1295-4272-9138-f99709370657 --- tools/mknkboot.c | 12 ++++++++---- 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 e63840427e..6ac26428bc 100644 --- a/tools/mknkboot.c +++ b/tools/mknkboot.c @@ -42,8 +42,12 @@ #include #include #include +#if defined(_MSC_VER) +#include "pstdint.h" +#else #include #include +#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 69925a8d2c..295fd91c60 100644 --- a/utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj +++ b/utils/MTP/beastpatcher/vs2005/beastpatcher.vcproj @@ -41,8 +41,8 @@ + + @@ -224,6 +228,10 @@ RelativePath="..\beastpatcher.h" > + + -- cgit v1.2.3