Prefix include guards with LIBITE_ to safe guard name space

The tree.h and queue.h include guards must remain so users don't
accidentally get their system queue.h included as well.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-11-28 19:20:53 +01:00
parent bc72e1c3ad
commit 407b8f6dbf
7 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -29,8 +29,8 @@ extern "C"
{
#endif
#ifndef CONIO_H_
#define CONIO_H_
#ifndef LIBITE_CONIO_H_
#define LIBITE_CONIO_H_
#include <stdio.h>
@@ -130,7 +130,7 @@ static inline void printheader(FILE *fp, const char *line, int nl)
printhdr(fp, line, nl, REVERSE);
}
#endif /* CONIO_H_ */
#endif /* LIBITE_CONIO_H_ */
#ifdef __cplusplus
}
+3 -3
View File
@@ -38,8 +38,8 @@ extern "C"
{
#endif
#ifndef LITE_H_
#define LITE_H_
#ifndef LIBITE_LITE_H_
#define LIBITE_LITE_H_
#include <errno.h>
#include <fcntl.h> /* Definition of AT_* constants for utimensat() */
@@ -245,7 +245,7 @@ static inline int fisslashdir(const char *dir)
#define pidfile_read_pid(file) pidfile_read(file)
#define signal_pidfile(file, signo) pidfile_signal(file, signo)
#endif /* LITE_H_ */
#endif /* LIBITE_LITE_H_ */
#ifdef __cplusplus
}
+3 -3
View File
@@ -36,8 +36,8 @@ extern "C"
{
#endif
#ifndef LITE_STRDUPA_H
#define LITE_STRDUPA_H
#ifndef LIBITE_STRDUPA_H
#define LIBITE_STRDUPA_H
#if !defined(HAVE_STRDUPA)
#if defined(strdupa)
@@ -67,7 +67,7 @@ extern "C"
#endif /* __GNUC__ */
#endif /* !HAVE_STRDUPA */
#endif /* LITE_STRDUPA_H */
#endif /* LIBITE_STRDUPA_H */
#ifdef __cplusplus
}
+3 -3
View File
@@ -33,8 +33,8 @@ extern "C"
{
#endif
#ifndef LITE_STRING_H_
#define LITE_STRING_H_
#ifndef LIBITE_STRING_H_
#define LIBITE_STRING_H_
#include <stdint.h> /* uint8_t, uint16_t, uint32_t, INT32_MAX, etc. */
#include <string.h>
@@ -143,7 +143,7 @@ static inline int string_case_compare(const char *a, const char *b)
return strlen(a) == strlen(b) && !strcasecmp(a, b);
}
#endif /* LITE_STRING_H_ */
#endif /* LIBITE_STRING_H_ */
#ifdef __cplusplus
}
+3 -3
View File
@@ -36,8 +36,8 @@ extern "C"
{
#endif
#ifndef LITE_STRNDUPA_H_
#define LITE_STRNDUPA_H_
#ifndef LIBITE_STRNDUPA_H_
#define LIBITE_STRNDUPA_H_
#if !defined(HAVE_STRNDUPA)
#if defined(strndupa)
@@ -69,7 +69,7 @@ extern "C"
#endif /* __GNUC__ */
#endif /* !HAVE_STRNDUPA */
#endif /* GNU_STRING_STRNDUPA_H */
#endif /* LIBITE_STRNDUPA_H */
#ifdef __cplusplus
}
+3 -3
View File
@@ -27,8 +27,8 @@ extern "C"
{
#endif
#ifndef LITE_STRNLEN_H_
#define LITE_STRNLEN_H_
#ifndef LIBITE_STRNLEN_H_
#define LIBITE_STRNLEN_H_
#if !defined(HAVE_STRNLEN)
#if defined(strnlen)
@@ -58,7 +58,7 @@ static inline size_t xstrnlen(const char *str, size_t lim)
}
#endif
#endif /* LITE_STRNLEN_H_ */
#endif /* LIBITE_STRNLEN_H_ */
#ifdef __cplusplus
}
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef LITE_TESTS_CHECK_H_
#define LITE_TESTS_CHECK_H_
#ifndef LIBLITE_TESTS_CHECK_H_
#define LIBLITE_TESTS_CHECK_H_
#include <stdarg.h>
#include <stdlib.h>
@@ -78,4 +78,4 @@ static inline char *timespec2str(struct timespec *ts, char *buf, size_t len)
return buf;
}
#endif /* LITE_TESTS_CHECK_H_ */
#endif /* LIBLITE_TESTS_CHECK_H_ */