forked from Mirrors/wine-wine
mspatcha: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>stable
parent
8997127c11
commit
a8732ce638
|
@ -1,6 +1,8 @@
|
||||||
MODULE = mspatcha.dll
|
MODULE = mspatcha.dll
|
||||||
IMPORTLIB = mspatcha
|
IMPORTLIB = mspatcha
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
lzxd_dec.c \
|
lzxd_dec.c \
|
||||||
mspatcha_main.c \
|
mspatcha_main.c \
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* - Implememnt interleaved decoding
|
* - Implememnt interleaved decoding
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
* solution to the above 32-bit exe problem.
|
* solution to the above 32-bit exe problem.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
|
|
|
@ -32,8 +32,6 @@
|
||||||
* but not all, of the positions listed in the PE .reloc table.
|
* but not all, of the positions listed in the PE .reloc table.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -297,7 +295,7 @@ static INT64 read_svli(struct patch_file_header *ph)
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_ignored_range(const void *a, const void *b)
|
static int __cdecl compare_ignored_range(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
LONG delta = ((PATCH_IGNORE_RANGE*)a)->OffsetInOldFile - ((PATCH_IGNORE_RANGE*)b)->OffsetInOldFile;
|
LONG delta = ((PATCH_IGNORE_RANGE*)a)->OffsetInOldFile - ((PATCH_IGNORE_RANGE*)b)->OffsetInOldFile;
|
||||||
if (delta > 0)
|
if (delta > 0)
|
||||||
|
@ -307,7 +305,7 @@ static int compare_ignored_range(const void *a, const void *b)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_retained_range_old(const void *a, const void *b)
|
static int __cdecl compare_retained_range_old(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
LONG delta = ((PATCH_RETAIN_RANGE*)a)->OffsetInOldFile - ((PATCH_RETAIN_RANGE*)b)->OffsetInOldFile;
|
LONG delta = ((PATCH_RETAIN_RANGE*)a)->OffsetInOldFile - ((PATCH_RETAIN_RANGE*)b)->OffsetInOldFile;
|
||||||
if (delta > 0)
|
if (delta > 0)
|
||||||
|
@ -317,7 +315,7 @@ static int compare_retained_range_old(const void *a, const void *b)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_retained_range_new(const void *a, const void *b)
|
static int __cdecl compare_retained_range_new(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
LONG delta = ((PATCH_RETAIN_RANGE*)a)->OffsetInNewFile - ((PATCH_RETAIN_RANGE*)b)->OffsetInNewFile;
|
LONG delta = ((PATCH_RETAIN_RANGE*)a)->OffsetInNewFile - ((PATCH_RETAIN_RANGE*)b)->OffsetInNewFile;
|
||||||
if (delta > 0)
|
if (delta > 0)
|
||||||
|
|
Loading…
Reference in New Issue