Namespace header inclusion protection macros

Use LIBBSD_, and remove trailing underscores.
This commit is contained in:
Guillem Jover
2017-06-14 02:44:37 +02:00
parent 47013bc92a
commit ec5d9a685a
10 changed files with 29 additions and 29 deletions

View File

@@ -32,8 +32,8 @@
* $FreeBSD$
*/
#ifndef _SYS_BITSTRING_H_
#define _SYS_BITSTRING_H_
#ifndef LIBBSD_SYS_BITSTRING_H
#define LIBBSD_SYS_BITSTRING_H
typedef unsigned char bitstr_t;
@@ -143,4 +143,4 @@ typedef unsigned char bitstr_t;
*(value) = _value; \
} while (0)
#endif /* !_SYS_BITSTRING_H_ */
#endif /* !LIBBSD_SYS_BITSTRING_H */

View File

@@ -30,8 +30,8 @@
* $FreeBSD$
*/
#ifndef _SYS_QUEUE_H_
#define _SYS_QUEUE_H_
#ifndef LIBBSD_SYS_QUEUE_H
#define LIBBSD_SYS_QUEUE_H
#include <sys/cdefs.h>
@@ -691,4 +691,4 @@ struct { \
(head2)->tqh_last = &(head2)->tqh_first; \
} while (0)
#endif /* !_SYS_QUEUE_H_ */
#endif /* !LIBBSD_SYS_QUEUE_H */

View File

@@ -27,8 +27,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _SYS_TREE_H_
#define _SYS_TREE_H_
#ifndef LIBBSD_SYS_TREE_H
#define LIBBSD_SYS_TREE_H
#include <sys/cdefs.h>
@@ -762,4 +762,4 @@ name##_RB_MINMAX(struct name *head, int val) \
((x) != NULL) && ((y) = name##_RB_PREV(x), (x) != NULL); \
(x) = (y))
#endif /* _SYS_TREE_H_ */
#endif /* LIBBSD_SYS_TREE_H */