diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-09-16 19:16:47 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-09-16 19:16:47 +0200 |
commit | 17af94f8490fc0a7b813aff6a179f06107dbe32d (patch) | |
tree | bd5156d4ecb8d930169eac37ce383268b17acf48 /CMakeLists.txt | |
parent | 3b6cdcd225085884d7bb14d394f1acf0230c93c3 (diff) | |
download | oniguruma-17af94f8490fc0a7b813aff6a179f06107dbe32d.zip oniguruma-17af94f8490fc0a7b813aff6a179f06107dbe32d.tar.gz oniguruma-17af94f8490fc0a7b813aff6a179f06107dbe32d.tar.bz2 |
Remove HAVE_STRINGS_H
This patch removes not needed `HAVE_STRINGS_H` symbol as was defined by
Autoconf in configure.ac and by CMake.
The windows/testc.c file also doesn't need the POSIX `<strings.h>` [1]
header file included as none of the functions defined by it are used:
* ffs
* strcasecmp
* strcasecmp_l
* strncasecmp
* strncasecmp_l
and the `<string.h>` file (part of C89 standard and above) [2] is
sufficient for it.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/strings.h.html
[2] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 093b6a5..cfec42c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,6 @@ include(TestBigEndian) check_function_exists(alloca HAVE_ALLOCA) check_include_files(alloca.h HAVE_ALLOCA_H) check_include_files(stdint.h HAVE_STDINT_H) -check_include_files(strings.h HAVE_STRINGS_H) check_include_files(sys/times.h HAVE_SYS_TIMES_H) check_include_files(sys/time.h HAVE_SYS_TIME_H) check_include_files(sys/types.h HAVE_SYS_TYPES_H) |