X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=win32%2Fwin32_errnowrapper.h;fp=win32%2Fwin32_errnowrapper.h;h=4477d3f975512bc5c776b01f932600106738abb5;hb=5670ec6e746ac6d1f110e160806c8d846b98b660;hp=0000000000000000000000000000000000000000;hpb=3be2733596b0cc976136361c5b20576ffca5bef5;p=deb_libnfs.git diff --git a/win32/win32_errnowrapper.h b/win32/win32_errnowrapper.h new file mode 100644 index 0000000..4477d3f --- /dev/null +++ b/win32/win32_errnowrapper.h @@ -0,0 +1,15 @@ +#ifndef WIN32_ERRNOWRAPPER_H_ +#define WIN32_ERRNOWRAPPER_H_ + +#undef errno +#define errno WSAGetLastError() +#undef EAGAIN +#undef EWOULDBLOCK +#undef EINTR +#undef EINPROGRESS + +#define EWOULDBLOCK WSAEWOULDBLOCK +#define EAGAIN WSAEWOULDBLOCK //same on windows +#define EINTR WSAEINTR +#define EINPROGRESS WSAEINPROGRESS +#endif //WIN32_ERRNOWRAPPER_H_