summaryrefslogtreecommitdiff
path: root/src/xdiff
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-01-27 11:29:25 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-03-02 15:49:28 -0800
commitcd33323b7251e0bb15c5ee476e918859b661cc5f (patch)
treeca31375d8108a4186e664dc0f974ebf1f6a92fba /src/xdiff
parent8b75f7f3ea91b3efc4e58a7bf737aedfd19671e7 (diff)
downloadlibgit2-cd33323b7251e0bb15c5ee476e918859b661cc5f.tar.gz
Initial implementation of git_diff_blob
This gets the basic plumbing in place for git_diff_blob. There is a known issue where additional parameters like the number of lines of context to display on the diff are not working correctly (which leads one of the new unit tests to fail).
Diffstat (limited to 'src/xdiff')
-rw-r--r--src/xdiff/xinclude.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xdiff/xinclude.h b/src/xdiff/xinclude.h
index 526ccb344..2928d329b 100644
--- a/src/xdiff/xinclude.h
+++ b/src/xdiff/xinclude.h
@@ -26,10 +26,14 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <limits.h>
+#ifdef WIN32
+#else
+#include <unistd.h>
+#endif
+
#include "xmacros.h"
#include "xdiff.h"
#include "xtypes.h"