Savagedlight / libifconfig

A C API to do most things done by the FreeBSD 'ifconfig' program today
Other
26 stars 7 forks source link

Verify that '#pragma once' is an acceptable header guard lock #3

Open Savagedlight opened 8 years ago

Savagedlight commented 8 years ago

Check whether all compilers in base supports the '#pragma once' guard lock. Do also consider corner cases, like multiple copies of the header being included, from different paths.

Reported by: Ravi Pokala

asomers commented 7 years ago

Nope. While the base compilers all technically support #pragma once, it is considered bad style. Except for a few things in contrib, no header file in the base system uses it. Better to use the usual ifndef IFCONFIG_H style.