ctdb:includes: add #ifdef guards for _PUBLIC_, _NORETURN_, and _PURE_
authorMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 13:07:35 +0000 (15:07 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 21:38:10 +0000 (23:38 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/internal/includes.h

index 37471982de2f1d07bff7b5c89f7ad2d529561d7c..639d75e18711498a4fe42ac47d8c5e24c93c4122 100644 (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))