1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[C90] string.h can be included unconditionally

This commit is contained in:
Witold Filipczyk 2021-03-19 14:48:11 +01:00
parent 67075e22f9
commit e1ddd8b571
4 changed files with 2 additions and 13 deletions

View File

@ -669,9 +669,6 @@
/* Define to 1 if you have the <strings.h> header file. */
#mesondefine HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#mesondefine HAVE_STRING_H
/* Define to 1 if you have the `strncasecmp' function. */
#mesondefine HAVE_STRNCASECMP

View File

@ -200,7 +200,6 @@ conf_data.set('HAVE_IDNA_H', compiler.has_header('idna.h'))
conf_data.set('HAVE_EVENT_H', compiler.has_header('event.h'))
conf_data.set10('HAVE_STRING_H', compiler.has_header('string.h'))
conf_data.set10('HAVE_ALLOCA_H', compiler.has_header('alloca.h'))
conf_data.set('HAVE_STDALIGN_H', compiler.has_header('stdalign.h'))

View File

@ -26,11 +26,7 @@
#include <stddef.h>
#include <stdio.h>
#if HAVE_STRING_H
#include <string.h>
#else
#include <strings.h>
#endif
#include <stdlib.h>
#if defined _WIN32 || defined __WIN32__

View File

@ -10,11 +10,8 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H
#include <string.h>
#else
# include <strings.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif