Commit 8c327228fdb0bcf130961362b14fec0e9a63c89a

Sven Strickroth 2012-04-21T18:45:32

Check for _WIN32 instead of GIT_WIN32 or WIN32 to detect windows build environments This fixes a possible compilation issue (when GIT_WIN32 was not set) which was introduced in revision 69a4bc1988fc242bd0d310781c865cce5481a0e6. Signed-off-by: Sven Strickroth <email@cs-ware.de>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xdiff/xinclude.h b/src/xdiff/xinclude.h
index 7d7b77b..4a1cde9 100644
--- a/src/xdiff/xinclude.h
+++ b/src/xdiff/xinclude.h
@@ -29,7 +29,7 @@
 #include <string.h>
 #include <limits.h>
 
-#ifdef GIT_WIN32
+#ifdef _WIN32
 #else
 #include <unistd.h>
 #endif