comparison mercurial/thirdparty/xdiff/xdiffi.c @ 36723:1f9bbd1d6b8a

xdiff: fix builds on Windows This works on my ancient Fedora system too, without warnings. There are, however, warnings about various 64 to 32 bit conversions on Windows that need to be examined.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 04 Mar 2018 15:16:42 -0500
parents c420792217c8
children 09f320067591
comparison
equal deleted inserted replaced
36722:6bacb2f663cb 36723:1f9bbd1d6b8a
28 #define XDL_HEUR_MIN_COST 256 28 #define XDL_HEUR_MIN_COST 256
29 #define XDL_LINE_MAX (long)((1UL << (CHAR_BIT * sizeof(long) - 1)) - 1) 29 #define XDL_LINE_MAX (long)((1UL << (CHAR_BIT * sizeof(long) - 1)) - 1)
30 #define XDL_SNAKE_CNT 20 30 #define XDL_SNAKE_CNT 20
31 #define XDL_K_HEUR 4 31 #define XDL_K_HEUR 4
32 32
33 /* VC 2008 doesn't know about the inline keyword. */
34 #if defined(_MSC_VER)
35 #define inline __forceinline
36 #endif
33 37
34 38
35 typedef struct s_xdpsplit { 39 typedef struct s_xdpsplit {
36 long i1, i2; 40 long i1, i2;
37 int min_lo, min_hi; 41 int min_lo, min_hi;