DragonFly kernel List (threaded) for 2007-06
DragonFly BSD
DragonFly kernel List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

#ifndef's before including the headers (redundant inclusion test?)


From: "Nuno Antunes" <nuno.antunes@xxxxxxxxx>
Date: Sun, 3 Jun 2007 21:17:32 +0100

Hi.

Why is the following test necessary before including headers? (for
example in sys/netgraph/netgraph.h).

#ifndef _SYS_QUEUE_H_
#include <sys/queue.h>
#endif

when <sys/queue.h> already tests for inclusion?

#ifndef _SYS_QUEUE_H_
#define _SYS_QUEUE_H_
. ..
#endif

Thanks,
Nuno



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]