X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=compat%2Fwin32.h;h=8ce91048deffc17bdf8d51672ddaa0c867052ac5;hb=a598331f952b5bd89f72fcf20a44ab3aa2918b3f;hp=c26384e595b4f23d5fef938b1136cc3a85469e56;hpb=417653777a1d073f53b2053cf0b0838a35cfc7d5;p=git.git diff --git a/compat/win32.h b/compat/win32.h index c26384e59..8ce91048d 100644 --- a/compat/win32.h +++ b/compat/win32.h @@ -1,5 +1,10 @@ +#ifndef WIN32_H +#define WIN32_H + /* common Win32 functions for MinGW and Cygwin */ +#ifndef WIN32 /* Not defined by Cygwin */ #include +#endif static inline int file_attr_to_st_mode (DWORD attr) { @@ -32,3 +37,5 @@ static inline int get_file_attr(const char *fname, WIN32_FILE_ATTRIBUTE_DATA *fd return ENOENT; } } + +#endif