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:
parent
67075e22f9
commit
e1ddd8b571
@ -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
|
||||
|
||||
|
@ -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'))
|
||||
|
@ -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__
|
||||
|
@ -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
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user