X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Futils.h;h=79520250899fabb3b5d883327396107338128fdb;hp=fbeae5eb9ae9553f0e7a508dc377b27c5cd5dd48;hb=dff4955ddec1d318a56997388f367186c5b8078c;hpb=2e83ad60d5164b57331e12c97ff9b202e74a97f1 diff --git a/src/utils.h b/src/utils.h index fbeae5e..7952025 100644 --- a/src/utils.h +++ b/src/utils.h @@ -24,8 +24,11 @@ extern bool hex2bin(char *src, char *dst, int length); extern void bin2hex(char *src, char *dst, int length); -#ifdef HAVE_MINGW +#if defined(HAVE_MINGW) || defined(HAVE_CYGWIN) extern const char *winerror(int); +#endif + +#ifdef HAVE_MINGW #define strerror(x) ((x)>0?strerror(x):winerror(GetLastError())) #define sockerrno WSAGetLastError() #define sockstrerror(x) winerror(x)