1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04: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). */ /* Define to 1 if you have the `socket' library (-lsocket). */
#mesondefine HAVE_LIBSOCKET #mesondefine HAVE_LIBSOCKET
/* Define to 1 if you have the <locale.h> header file. */
#mesondefine HAVE_LOCALE_H
/* Define if you have long long */ /* Define if you have long long */
#mesondefine 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_STDINT_H', compiler.has_header('stdint.h'))
conf_data.set10('HAVE_INTTYPES_H', compiler.has_header('inttypes.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_PWD_H', compiler.has_header('pwd.h'))
conf_data.set10('HAVE_TERMIOS_H', compiler.has_header('termios.h')) conf_data.set10('HAVE_TERMIOS_H', compiler.has_header('termios.h'))
conf_data.set10('HAVE_POLL_H', compiler.has_header('poll.h')) conf_data.set10('HAVE_POLL_H', compiler.has_header('poll.h'))

View File

@ -51,13 +51,7 @@
#include <unistd.h> #include <unistd.h>
#endif #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> #include <locale.h>
#endif
#ifdef HAVE_X11 #ifdef HAVE_X11
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -862,9 +856,7 @@ get_input_handle(void)
void void
init_osdep(void) init_osdep(void)
{ {
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, ""); setlocale(LC_ALL, "");
#endif
} }
#endif #endif

View File

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