X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3bar%2Finclude%2Futil.h;h=9ffd4467f56ceb3f5078e0432b0c569dd3565b60;hb=c23db20cb56847305bd8b6b362b8623e9e81db69;hp=6ae97815384049ec87d95ec94fd6788c19b648d4;hpb=72c66a2091659c0a986a627bdb3b766628437553;p=i3%2Fi3 diff --git a/i3bar/include/util.h b/i3bar/include/util.h index 6ae97815..9ffd4467 100644 --- a/i3bar/include/util.h +++ b/i3bar/include/util.h @@ -5,8 +5,7 @@ * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) * */ -#ifndef UTIL_H_ -#define UTIL_H_ +#pragma once #include "queue.h" @@ -36,8 +35,6 @@ } \ } while (0) -#endif - /* Securely fee tail-queues */ #define FREE_TAILQ(l, type) do { \ type *walk = TAILQ_FIRST(l); \ @@ -48,6 +45,9 @@ } \ } while (0) +#if defined(DLOG) +#undef DLOG +#endif /* Use cool logging-macros */ #define DLOG(fmt, ...) do { \ if (config.verbose) { \