diff 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
line wrap: on
line diff
--- a/mercurial/thirdparty/xdiff/xdiffi.c	Mon Mar 05 01:08:40 2018 +0530
+++ b/mercurial/thirdparty/xdiff/xdiffi.c	Sun Mar 04 15:16:42 2018 -0500
@@ -30,6 +30,10 @@
 #define XDL_SNAKE_CNT 20
 #define XDL_K_HEUR 4
 
+/* VC 2008 doesn't know about the inline keyword. */
+#if defined(_MSC_VER)
+#define inline __forceinline
+#endif
 
 
 typedef struct s_xdpsplit {