X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-compat-util.h;h=8d6e29cdeadfe146f4542c0b2b8ba803dedd2293;hb=3fe271e91b4d1b9ed0b304e218df8fd419012107;hp=71b5acb6fa2a0de36325cb8c2c6d56b458dfc7e5;hpb=b5a8dc7e066ac739a42f87f64e067d08ff842470;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index 71b5acb6f..8d6e29cde 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -65,6 +65,12 @@ #define _NETBSD_SOURCE 1 #define _SGI_SOURCE 1 +#ifdef WIN32 /* Both MinGW and MSVC */ +#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ +#include +#include +#endif + #include #include #include @@ -113,6 +119,9 @@ /* pull in Windows compatibility stuff */ #include "compat/mingw.h" #endif /* __MINGW32__ */ +#ifdef _MSC_VER +#include "compat/msvc.h" +#endif #ifndef NO_LIBGEN_H #include @@ -174,6 +183,8 @@ extern char *gitbasename(char *); #endif #endif +#include "compat/bswap.h" + /* General helper functions */ extern void usage(const char *err) NORETURN; extern void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));