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

[locale.h] Can be included unconditionally (C90)

This commit is contained in:
Witold Filipczyk 2021-03-19 14:35:21 +01:00
parent cba5771c0c
commit 5bf44a6725
4 changed files with 0 additions and 16 deletions

View File

@ -512,9 +512,6 @@
/* Define to 1 if you have the `socket' library (-lsocket). */
#mesondefine HAVE_LIBSOCKET
/* Define to 1 if you have the <locale.h> header file. */
#mesondefine HAVE_LOCALE_H
/* Define if you have long long */
#mesondefine HAVE_LONG_LONG

View File

@ -190,7 +190,6 @@ conf_data.set10('HAVE_NET_IF_H', compiler.has_header('net/if.h'))
conf_data.set10('HAVE_STDINT_H', compiler.has_header('stdint.h'))
conf_data.set10('HAVE_INTTYPES_H', compiler.has_header('inttypes.h'))
conf_data.set10('HAVE_LOCALE_H', compiler.has_header('locale.h'))
conf_data.set10('HAVE_PWD_H', compiler.has_header('pwd.h'))
conf_data.set10('HAVE_TERMIOS_H', compiler.has_header('termios.h'))
conf_data.set10('HAVE_POLL_H', compiler.has_header('poll.h'))

View File

@ -51,13 +51,7 @@
#include <unistd.h>
#endif
#ifdef HAVE_LOCALE_H
/* For the sake of SunOS, keep this away from files including
* intl/gettext/libintl.h because <locale.h> includes system <libintl.h> which
* either includes system gettext header or contains gettext function
* declarations. */
#include <locale.h>
#endif
#ifdef HAVE_X11
#include <X11/Xlib.h>
@ -862,9 +856,7 @@ get_input_handle(void)
void
init_osdep(void)
{
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "");
#endif
}
#endif

View File

@ -19,9 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#include "elinks.h"
@ -45,9 +43,7 @@ init_osdep(void)
exit(-1);
}
#endif
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "");
#endif
#ifdef CONFIG_IDN
{
char buf[60];