Merge pull request #636 from csware/WIN32-fixes

Win32 fixes
This commit is contained in:
Vicent Martí 2012-04-22 11:34:12 -07:00
commit 7dbbf4d7f2
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
# define GIT_FORMAT_PRINTF(a,b) /* empty */ # define GIT_FORMAT_PRINTF(a,b) /* empty */
#endif #endif
#if (defined(_WIN32) || defined(_WIN64)) && !defined(__CYGWIN__) #if (defined(_WIN32)) && !defined(__CYGWIN__)
#define GIT_WIN32 1 #define GIT_WIN32 1
#endif #endif

View File

@ -29,7 +29,7 @@
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#ifdef GIT_WIN32 #ifdef _WIN32
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif