diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 13:07:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 13:07:45 -0400 |
commit | 39b51c6d6e947778bf2b63fc9586a3236665881e (patch) | |
tree | b1665af50717e114427bf857c5422b30faaa4728 /build | |
parent | e514ebc67f0ece9b24d9cd7e5478d12297d0efcf (diff) | |
download | bfs-39b51c6d6e947778bf2b63fc9586a3236665881e.tar.xz |
build: Add checks for strtofflags() and string_to_flags()
Diffstat (limited to 'build')
-rw-r--r-- | build/has/string-to-flags.c | 9 | ||||
-rw-r--r-- | build/has/strtofflags.c | 9 | ||||
-rw-r--r-- | build/header.mk | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/build/has/string-to-flags.c b/build/has/string-to-flags.c new file mode 100644 index 0000000..027d72c --- /dev/null +++ b/build/has/string-to-flags.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +#include <stddef.h> +#include <util.h> + +int main(void) { + return string_to_flags(NULL, NULL, NULL); +} diff --git a/build/has/strtofflags.c b/build/has/strtofflags.c new file mode 100644 index 0000000..73ecbcb --- /dev/null +++ b/build/has/strtofflags.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +#include <stddef.h> +#include <unistd.h> + +int main(void) { + return strtofflags(NULL, NULL, NULL); +} diff --git a/build/header.mk b/build/header.mk index d235fd0..2cd13fa 100644 --- a/build/header.mk +++ b/build/header.mk @@ -40,6 +40,8 @@ HEADERS := \ gen/has/strerror-l.h \ gen/has/strerror-r-gnu.h \ gen/has/strerror-r-posix.h \ + gen/has/string-to-flags.h \ + gen/has/strtofflags.h \ gen/has/timegm.h \ gen/has/tm-gmtoff.h \ gen/has/uselocale.h |