summaryrefslogtreecommitdiff
path: root/win32.h
diff options
context:
space:
mode:
authorm <m@bitsnbites.eu>2019-03-31 18:17:19 +0200
committerMarcus Geelnard <marcus.geelnard@smarteye.se>2019-04-01 11:54:37 +0200
commitdc6d19b9ece7204609980272e4b158deff224a9a (patch)
tree6d57dce1a5af86dfed27e01b18b7a3cf33f97fcb /win32.h
parent1d092a235aae92cb9a4fe260c385a850eadfc611 (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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/win32.h b/win32.h
index 1a27c18..7cb5706 100644
--- a/win32.h
+++ b/win32.h
@@ -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 */