X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fstat-w32.c;h=c7a53f9da8d8d09573d36fbb98f5f77dfff27de6;hb=92249085071a973e2c0621b0415b93d2e48bb00d;hp=5d76a462e19d6d80f8aa3592aa6e1a14cafc8f28;hpb=a8a88eddaa90432e6ec1b8d9d5c9842bc91afd1d;p=debian%2Fgzip diff --git a/lib/stat-w32.c b/lib/stat-w32.c index 5d76a46..c7a53f9 100644 --- a/lib/stat-w32.c +++ b/lib/stat-w32.c @@ -18,7 +18,7 @@ #include -#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +#if defined _WIN32 && ! defined __CYGWIN__ /* Ensure that defines FILE_ID_INFO. */ #undef _WIN32_WINNT @@ -38,6 +38,10 @@ #include "pathmax.h" #include "verify.h" +/* Avoid warnings from gcc -Wcast-function-type. */ +#define GetProcAddress \ + (void *) GetProcAddress + #if _GL_WINDOWS_STAT_INODES == 2 /* GetFileInformationByHandleEx was introduced only in Windows Vista. */ typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile,