Fix building with GCC4

svn path=/trunk/; revision=24502
This commit is contained in:
Thomas Bluemel 2006-10-13 12:52:24 +00:00
parent 728ea14e4f
commit 25bc0553d1
2 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ static int m_argc = 0;
static char **m_argv = NULL; static char **m_argv = NULL;
/* patch buffer where we put the patch info into */ /* patch buffer where we put the patch info into */
static unsigned char m_patchBuffer[SIZEOF_PATCH_BUFFER_MAGIC + PATCH_BUFFER_SIZE] = static char m_patchBuffer[SIZEOF_PATCH_BUFFER_MAGIC + PATCH_BUFFER_SIZE] =
PATCH_BUFFER_MAGIC; PATCH_BUFFER_MAGIC;
/** HELPER FUNCTIONS **********************************************************/ /** HELPER FUNCTIONS **********************************************************/
@ -211,7 +211,7 @@ compareFiles(
static int static int
outputPatch(const char *outputFileName) outputPatch(const char *outputFileName)
{ {
unsigned char *patchExe, *patchBuffer = NULL; char *patchExe, *patchBuffer = NULL;
int i, size, patchExeSize, patchSize, stringSize, stringOffset, patchOffset; int i, size, patchExeSize, patchSize, stringSize, stringOffset, patchOffset;
Patch *patch; Patch *patch;
PatchedFile *files; PatchedFile *files;

View file

@ -1,4 +1,4 @@
<module name="partinfo" type="win32cui" installbase="bin" installname="partinfo.exe"> <module name="partinfo" type="win32cui" installbase="bin" installname="partinfo.exe" allowwarnings="true">
<define name="__USE_W32API" /> <define name="__USE_W32API" />
<library>msvcrt</library> <library>msvcrt</library>
<library>kernel32</library> <library>kernel32</library>