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

namespace conflict #20

Closed showmsg closed 3 years ago

showmsg commented 8 years ago

How to resolve?

/usr/local/include/xredis/xRedisClient.h:189:137: error: macro "setbit" passed 5 arguments, but takes just 2
     /* SETBIT      */  bool setbit(const RedisDBIdx& dbi,  const std::string& key,  int offset, int64_t newbitValue, int64_t oldbitValue);
haitongz commented 7 years ago

/usr/include/sys/param.h have defined the setbit macro solution 1: comments the setbit function in xredis if you do not use it 2: change the setbit function name in xredis and recompile it

0xsky commented 6 years ago

好吧,我感觉还是很有必要加上namespace了。 已经加上了。

0xsky commented 3 years ago

已经加上namespace了