mirror of
https://github.com/troglobit/libite.git
synced 2026-11-01 13:00:33 +00:00
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:
1 parent
bc72e1c3ad
commit
407b8f6dbf
7 files changed
+21
-21
No files matched your search
+3
-3
@@ -29,8 +29,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONIO_H_
|
#ifndef LIBITE_CONIO_H_
|
||||||
#define CONIO_H_
|
#define LIBITE_CONIO_H_
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ static inline void printheader(FILE *fp, const char *line, int nl)
|
|||||||
printhdr(fp, line, nl, REVERSE);
|
printhdr(fp, line, nl, REVERSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONIO_H_ */
|
#endif /* LIBITE_CONIO_H_ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -38,8 +38,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LITE_H_
|
#ifndef LIBITE_LITE_H_
|
||||||
#define LITE_H_
|
#define LIBITE_LITE_H_
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h> /* Definition of AT_* constants for utimensat() */
|
#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 pidfile_read_pid(file) pidfile_read(file)
|
||||||
#define signal_pidfile(file, signo) pidfile_signal(file, signo)
|
#define signal_pidfile(file, signo) pidfile_signal(file, signo)
|
||||||
|
|
||||||
#endif /* LITE_H_ */
|
#endif /* LIBITE_LITE_H_ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -36,8 +36,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LITE_STRDUPA_H
|
#ifndef LIBITE_STRDUPA_H
|
||||||
#define LITE_STRDUPA_H
|
#define LIBITE_STRDUPA_H
|
||||||
|
|
||||||
#if !defined(HAVE_STRDUPA)
|
#if !defined(HAVE_STRDUPA)
|
||||||
#if defined(strdupa)
|
#if defined(strdupa)
|
||||||
@@ -67,7 +67,7 @@ extern "C"
|
|||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
#endif /* !HAVE_STRDUPA */
|
#endif /* !HAVE_STRDUPA */
|
||||||
|
|
||||||
#endif /* LITE_STRDUPA_H */
|
#endif /* LIBITE_STRDUPA_H */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -33,8 +33,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LITE_STRING_H_
|
#ifndef LIBITE_STRING_H_
|
||||||
#define LITE_STRING_H_
|
#define LIBITE_STRING_H_
|
||||||
|
|
||||||
#include <stdint.h> /* uint8_t, uint16_t, uint32_t, INT32_MAX, etc. */
|
#include <stdint.h> /* uint8_t, uint16_t, uint32_t, INT32_MAX, etc. */
|
||||||
#include <string.h>
|
#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);
|
return strlen(a) == strlen(b) && !strcasecmp(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* LITE_STRING_H_ */
|
#endif /* LIBITE_STRING_H_ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -36,8 +36,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LITE_STRNDUPA_H_
|
#ifndef LIBITE_STRNDUPA_H_
|
||||||
#define LITE_STRNDUPA_H_
|
#define LIBITE_STRNDUPA_H_
|
||||||
|
|
||||||
#if !defined(HAVE_STRNDUPA)
|
#if !defined(HAVE_STRNDUPA)
|
||||||
#if defined(strndupa)
|
#if defined(strndupa)
|
||||||
@@ -69,7 +69,7 @@ extern "C"
|
|||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
#endif /* !HAVE_STRNDUPA */
|
#endif /* !HAVE_STRNDUPA */
|
||||||
|
|
||||||
#endif /* GNU_STRING_STRNDUPA_H */
|
#endif /* LIBITE_STRNDUPA_H */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -27,8 +27,8 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LITE_STRNLEN_H_
|
#ifndef LIBITE_STRNLEN_H_
|
||||||
#define LITE_STRNLEN_H_
|
#define LIBITE_STRNLEN_H_
|
||||||
|
|
||||||
#if !defined(HAVE_STRNLEN)
|
#if !defined(HAVE_STRNLEN)
|
||||||
#if defined(strnlen)
|
#if defined(strnlen)
|
||||||
@@ -58,7 +58,7 @@ static inline size_t xstrnlen(const char *str, size_t lim)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* LITE_STRNLEN_H_ */
|
#endif /* LIBITE_STRNLEN_H_ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
#ifndef LITE_TESTS_CHECK_H_
|
#ifndef LIBLITE_TESTS_CHECK_H_
|
||||||
#define LITE_TESTS_CHECK_H_
|
#define LIBLITE_TESTS_CHECK_H_
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -78,4 +78,4 @@ static inline char *timespec2str(struct timespec *ts, char *buf, size_t len)
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* LITE_TESTS_CHECK_H_ */
|
#endif /* LIBLITE_TESTS_CHECK_H_ */
|
||||||
Reference in new issue
Block a user