Use #pragma once
#pragma once is safer and simpler. According to Wikipedia it's supported by all major compilers.
This commit is contained in:
committed by
Michael Stapelberg
parent
67b213665b
commit
e2ebe3e2ae
@ -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); \
|
||||
|
Reference in New Issue
Block a user