1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

ctdb:includes: add #ifdef guard for ZERO_STRUCT

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Michael Adam 2014-06-20 15:08:01 +02:00
parent 89dafd1bcd
commit fd4bf96378

View File

@ -46,7 +46,9 @@ enum debug_level {
#define _PURE_
#endif /* _PURE_ */
#ifndef ZERO_STRUCT
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
#endif /* ZERO_STRUCT */
#ifndef discard_const
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))