Use #pragma once

#pragma once is safer and simpler. According to Wikipedia it's supported by all major compilers.
This commit is contained in:
Alexander Kedrik
2013-12-29 06:11:50 +04:00
committed by Michael Stapelberg
parent 67b213665b
commit e2ebe3e2ae
64 changed files with 64 additions and 254 deletions

View File

@ -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); \