forked from redis/hiredis
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows compatability, partially based on desb42's patch, but with cl…
…eanup and additional fixes.
- Loading branch information
1 parent
3cc6a7f
commit a45d29f
Showing
11 changed files
with
582 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
Special config for MSVC build of hiredis | ||
Does absolutely nothing for Unix! | ||
*/ | ||
#ifndef __CONFIG_H | ||
#define __CONFIG_H | ||
|
||
#include "hiredis.h" | ||
#ifdef HIREDIS_WIN | ||
|
||
#ifndef va_copy | ||
/* WARNING - DANGER - ASSUMES TYPICAL STACK MACHINE */ | ||
#define va_copy(dst, src) ((void)((dst) = (src))) | ||
#endif | ||
|
||
#if defined( _MSC_VER ) && !defined( __cplusplus ) | ||
#define inline __inline | ||
#endif | ||
|
||
#define snprintf sprintf_s | ||
#define strcasecmp strcmp | ||
#define strncasecmp _strnicmp | ||
#define strerror_r(errorno, buf, len) strerror_s(buf, len, errorno) | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.