0xsky / xredis

Redis C++ client, support the data slice storage, support redis cluster, thread-safe,multi-platform,connection pool, read/write separation.
GNU General Public License v3.0
337 stars 153 forks source link

MS VIsual Studio 2015 support #21

Open egbertn opened 8 years ago

egbertn commented 8 years ago

Hi, if you want, I have the files to compile it easily to a .lib file and 32 and 64 bit support for the source. I also found some size_t issues. and tiny compilation blocks, that have been solved with conditionals while maintaining compatibility for compiling on Linux. Thanks for your lib!

0xsky commented 7 years ago

谢谢你的使用与反馈! 这里随便说下WINDOWS下有关 size_t 的问题: 在WINDOWS的VS环境下,hiredis使用的C语言是C99版本的,而VS2013以前的VS。对C99支持都不完全, 所以使用低于VS2013的VS编译hiredis是有问题的。 如果要在WIN环境下使用xredis,请使用VS2013及以上版本的VS编译hiredis库。