Update sds.h
Fixing sds.h for building hiredis in cpp project
This commit is contained in:
parent
e30db1a3be
commit
f5b32e2474
2
sds.h
2
sds.h
@ -79,7 +79,7 @@ struct __attribute__ ((__packed__)) sdshdr64 {
|
|||||||
#define SDS_TYPE_64 4
|
#define SDS_TYPE_64 4
|
||||||
#define SDS_TYPE_MASK 7
|
#define SDS_TYPE_MASK 7
|
||||||
#define SDS_TYPE_BITS 3
|
#define SDS_TYPE_BITS 3
|
||||||
#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T)));
|
#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T)));
|
||||||
#define SDS_HDR(T,s) ((struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T))))
|
#define SDS_HDR(T,s) ((struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T))))
|
||||||
#define SDS_TYPE_5_LEN(f) ((f)>>SDS_TYPE_BITS)
|
#define SDS_TYPE_5_LEN(f) ((f)>>SDS_TYPE_BITS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user