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

ctdb:includes: add #ifdef guards for _PUBLIC_, _NORETURN_, and _PURE_

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:07:35 +02:00
parent fe6685dbf3
commit 89dafd1bcd

View File

@ -36,9 +36,15 @@ enum debug_level {
#define DEBUG(lvl, x) do { this_log_level = (lvl); if ((lvl) < DEBUG_DEBUG) { log_ringbuffer x; } if ((lvl) <= LogLevel) { do_debug x; }} while (0)
#define DEBUGADD(lvl, x) do { if ((lvl) <= LogLevel) { this_log_level = (lvl); do_debug_add x; }} while (0)
#ifndef _PUBLIC_
#define _PUBLIC_
#endif /* _PUBLIC_ */
#ifndef _NORETURN_
#define _NORETURN_
#endif /* _NORETURN_ */
#ifndef _PURE_
#define _PURE_
#endif /* _PURE_ */
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))