mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
18 lines
751 B
Diff
18 lines
751 B
Diff
![]() |
diff --git deps/hiredis/hiredis.h deps/hiredis/hiredis.h
|
||
|
--- deps/hiredis/hiredis.h
|
||
|
+++ deps/hiredis/hiredis.h
|
||
|
@@ -87,5 +87,12 @@
|
||
|
+#ifdef _WIN32
|
||
|
+#define __redis_strerror_r(errno, buf, len) \
|
||
|
+ do { \
|
||
|
+ strerror_s((buf), (len), (errno)); \
|
||
|
+ } while (0)
|
||
|
+#else
|
||
|
/* "regular" POSIX strerror_r that does the right thing. */
|
||
|
#define __redis_strerror_r(errno, buf, len) \
|
||
|
do { \
|
||
|
strerror_r((errno), (buf), (len)); \
|
||
|
} while (0)
|
||
|
+#endif
|
||
|
--
|