mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-14 15:05:39 +02:00
Namespace header inclusion protection macros
Use LIBBSD_, and remove trailing underscores.
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user