diff options
author | m <m@bitsnbites.eu> | 2019-03-31 18:17:19 +0200 |
---|---|---|
committer | Marcus Geelnard <marcus.geelnard@smarteye.se> | 2019-04-01 11:54:37 +0200 |
commit | dc6d19b9ece7204609980272e4b158deff224a9a (patch) | |
tree | 6d57dce1a5af86dfed27e01b18b7a3cf33f97fcb /win32.h | |
parent | 1d092a235aae92cb9a4fe260c385a850eadfc611 (diff) |
Port network layer to Winsock
With this change, Hiredis builds with MinGW and runs on Windows.
Diffstat (limited to 'win32.h')
-rw-r--r-- | win32.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -37,6 +37,10 @@ __inline int c99_snprintf(char* str, size_t size, const char* format, ...) return count; } #endif +#endif /* _MSC_VER */ -#endif -#endif
\ No newline at end of file +#ifdef _WIN32 +#define strerror_r(errno,buf,len) strerror_s(buf,len,errno) +#endif /* _WIN32 */ + +#endif /* _WIN32_HELPER_INCLUDE */ |