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:
parent
89dafd1bcd
commit
fd4bf96378
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user