1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[limits.h] limits.h can be included uncoditionally

This commit is contained in:
Witold Filipczyk 2021-03-19 14:30:54 +01:00
parent 36aa04ed12
commit cba5771c0c
9 changed files with 0 additions and 18 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 <limits.h> header file. */
#mesondefine HAVE_LIMITS_H
/* Define to 1 if you have the <locale.h> header file. */ /* Define to 1 if you have the <locale.h> header file. */
#mesondefine HAVE_LOCALE_H #mesondefine HAVE_LOCALE_H

View File

@ -165,7 +165,6 @@ endif
conf_data.set10('HAVE_WCHAR_H', compiler.has_header('wchar.h')) conf_data.set10('HAVE_WCHAR_H', compiler.has_header('wchar.h'))
conf_data.set10('HAVE_WCTYPE_H', compiler.has_header('wctype.h')) conf_data.set10('HAVE_WCTYPE_H', compiler.has_header('wctype.h'))
conf_data.set10('HAVE_FCNTL_H', compiler.has_header('fcntl.h')) conf_data.set10('HAVE_FCNTL_H', compiler.has_header('fcntl.h'))
conf_data.set10('HAVE_LIMITS_H', compiler.has_header('limits.h'))
conf_data.set10('HAVE_UNISTD_H', compiler.has_header('unistd.h')) conf_data.set10('HAVE_UNISTD_H', compiler.has_header('unistd.h'))
conf_data.set10('HAVE_SIGACTION_H', compiler.has_header('sigaction.h')) conf_data.set10('HAVE_SIGACTION_H', compiler.has_header('sigaction.h'))
conf_data.set10('HAVE_ARPA_INET_H', compiler.has_header('arpa/inet.h')) conf_data.set10('HAVE_ARPA_INET_H', compiler.has_header('arpa/inet.h'))

View File

@ -77,9 +77,7 @@ extern int errno;
/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
PATH_MAX but might cause redefinition warnings when sys/param.h is PATH_MAX but might cause redefinition warnings when sys/param.h is
later included (as on MORE/BSD 4.3). */ later included (as on MORE/BSD 4.3). */
#if defined _POSIX_VERSION || defined HAVE_LIMITS_H
#include <limits.h> #include <limits.h>
#endif
#ifndef _POSIX_PATH_MAX #ifndef _POSIX_PATH_MAX
#define _POSIX_PATH_MAX 255 #define _POSIX_PATH_MAX 255

View File

@ -18,9 +18,7 @@
#ifndef _GETTEXT_H #ifndef _GETTEXT_H
#define _GETTEXT_H 1 #define _GETTEXT_H 1
#ifdef HAVE_LIMITS_H
#include <limits.h> #include <limits.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -19,9 +19,7 @@
#error "Huh?! You have SSL enabled, but not OPENSSL nor GNUTLS!! And then you want exactly *what* from me?" #error "Huh?! You have SSL enabled, but not OPENSSL nor GNUTLS!! And then you want exactly *what* from me?"
#endif #endif
#ifdef HAVE_LIMITS_H
#include <limits.h> #include <limits.h>
#endif
#include "elinks.h" #include "elinks.h"

View File

@ -7,9 +7,7 @@
#include <stdalign.h> #include <stdalign.h>
#endif #endif
#ifdef HAVE_LIMITS_H
#include <limits.h> /* may contain PIPE_BUF definition on some systems */ #include <limits.h> /* may contain PIPE_BUF definition on some systems */
#endif
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
#include <stddef.h> /* may contain offsetof() */ #include <stddef.h> /* may contain offsetof() */

View File

@ -9,9 +9,7 @@
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef HAVE_LIMITS_H
#include <limits.h> #include <limits.h>
#endif
#ifdef HAVE_STDINT_H #ifdef HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>

View File

@ -8,9 +8,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_LIMITS_H
#include <limits.h> #include <limits.h>
#endif
#include "elinks.h" #include "elinks.h"

View File

@ -7,9 +7,7 @@
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_LIMITS_H
#include <limits.h> #include <limits.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>