summaryrefslogtreecommitdiffstats
path: root/ctdb/include/internal
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-06-20 15:07:35 +0200
committerMichael Adam <obnox@samba.org>2014-06-20 23:38:10 +0200
commit89dafd1bcdaf4ee8ba88437cd476fc9046b3109e (patch)
tree8589eeb37040a46bbaa4f840c266480308212efc /ctdb/include/internal
parentfe6685dbf3f84f88885c2d2da103670a1e1f7f92 (diff)
downloadsamba-89dafd1bcdaf4ee8ba88437cd476fc9046b3109e.tar.gz
samba-89dafd1bcdaf4ee8ba88437cd476fc9046b3109e.tar.xz
samba-89dafd1bcdaf4ee8ba88437cd476fc9046b3109e.zip
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>
Diffstat (limited to 'ctdb/include/internal')
-rw-r--r--ctdb/include/internal/includes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/include/internal/includes.h b/ctdb/include/internal/includes.h
index 37471982de..639d75e187 100644
--- a/ctdb/include/internal/includes.h
+++ b/ctdb/include/internal/includes.h
@@ -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))