Rename LIBC_VERSION to BUILD2_AUTOCONF_LIBC_VERSION, add include guard
This commit is contained in:
parent
fba5138c0d
commit
79d26b5bb3
@ -141,9 +141,9 @@ The first line in this header file must be in the form:
|
||||
If the name is followed by the `!` modifier, then it is *unprefixable* (see
|
||||
the previous section for details). The name can also be followed by `:` and a
|
||||
list of base checks. Such checks are automatically inserted before the rest of
|
||||
the lines in the resulting substitution. One notable check that you may
|
||||
want to use as a base is [`LIBC_VERSION`][libc-version] (see comments for
|
||||
details).
|
||||
the lines in the resulting substitution. One notable check that you may want
|
||||
to use as a base is [`BUILD2_AUTOCONF_LIBC_VERSION`][libc-version] (see
|
||||
comments for details).
|
||||
|
||||
Subsequent lines should be C-style comments or preprocessor directives that
|
||||
`#define` or `#undef` `<NAME>` depending on whether the feature is available
|
||||
@ -180,4 +180,4 @@ ways that deal with duplication (for example, include guards).
|
||||
[module-in]: https://build2.org/build2/doc/build2-build-system-manual.xhtml#module-in
|
||||
[proj-config]: https://build2.org/build2/doc/build2-build-system-manual.xhtml#proj-config
|
||||
[checks]: https://github.com/build2/libbuild2-autoconf/tree/master/libbuild2-autoconf/libbuild2/autoconf/checks/
|
||||
[libc-version]: https://github.com/build2/libbuild2-autoconf/tree/master/libbuild2-autoconf/libbuild2/autoconf/checks/LIBC_VERSION.h
|
||||
[libc-version]: https://github.com/build2/libbuild2-autoconf/tree/master/libbuild2-autoconf/libbuild2/autoconf/checks/BUILD2_AUTOCONF_LIBC_VERSION.h
|
||||
|
@ -1,4 +1,7 @@
|
||||
// LIBC_VERSION!
|
||||
// BUILD2_AUTOCONF_LIBC_VERSION!
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
#define BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
/* Include headers required to make various libc version number macros
|
||||
* available.
|
||||
@ -167,3 +170,5 @@
|
||||
#else
|
||||
# define BUILD2_AUTOCONF_MACOS_PREREQ(maj, min) 0
|
||||
#endif
|
||||
|
||||
#endif /* BUILD2_AUTOCONF_LIBC_VERSION */
|
@ -1,4 +1,4 @@
|
||||
// HAVE_CLOCK_GETTIME : LIBC_VERSION
|
||||
// HAVE_CLOCK_GETTIME : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_CLOCK_GETTIME
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_DLOPEN : LIBC_VERSION
|
||||
// HAVE_DLOPEN : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_DLOPEN
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_EVENTFD : LIBC_VERSION
|
||||
// HAVE_EVENTFD : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_EVENTFD
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_EXPLICIT_BZERO : LIBC_VERSION
|
||||
// HAVE_EXPLICIT_BZERO : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_EXPLICIT_BZERO
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_EXPLICIT_MEMSET : LIBC_VERSION
|
||||
// HAVE_EXPLICIT_MEMSET : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_EXPLICIT_MEMSET
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_FUTIMENS : LIBC_VERSION
|
||||
// HAVE_FUTIMENS : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_FUTIMENS
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_FUTIMES : LIBC_VERSION
|
||||
// HAVE_FUTIMES : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_FUTIMES
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_GETAUXVAL : LIBC_VERSION
|
||||
// HAVE_GETAUXVAL : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_GETAUXVAL
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_GETENTROPY : LIBC_VERSION
|
||||
// HAVE_GETENTROPY : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_GETENTROPY
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_INOTIFY : LIBC_VERSION
|
||||
// HAVE_INOTIFY : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_INOTIFY
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_LINKAT : LIBC_VERSION
|
||||
// HAVE_LINKAT : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_LINKAT
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_POLL : LIBC_VERSION
|
||||
// HAVE_POLL : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_POLL
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_POLLTS : LIBC_VERSION
|
||||
// HAVE_POLLTS : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_POLLTS
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_POSIX_FALLOCATE : LIBC_VERSION
|
||||
// HAVE_POSIX_FALLOCATE : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_POSIX_FALLOCATE
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_PPOLL : LIBC_VERSION
|
||||
// HAVE_PPOLL : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_PPOLL
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_RENAMEAT2 : LIBC_VERSION
|
||||
// HAVE_RENAMEAT2 : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_RENAMEAT2
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_STATX : LIBC_VERSION
|
||||
// HAVE_STATX : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_STATX
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// HAVE_THREADSAFE_CLOEXEC
|
||||
// HAVE_THREADSAFE_CLOEXEC : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#undef HAVE_THREADSAFE_CLOEXEC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user