summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/macros.h b/macros.h
index 56c8ccc..2be1d6b 100644
--- a/macros.h
+++ b/macros.h
@@ -1,10 +1,13 @@
#ifndef MACROS_H
#define MACROS_H
+#define const_strlen(str) sizeof((char []){str})
+
+#ifndef LOG_H
#include "log.h"
#define log(priority, ...) printlog(LOG_OUT_SYSLOG, priority, __VA_ARGS__)
#define log_reason(priority, msg, ...) log(priority, msg " Reason %s", __VA_ARGS__)
-#define const_strlen(str) sizeof((char []){str})
+#endif
#endif