1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

use HAVE_LIMITS_H symbol to protect limits.h inclusion

This commit is contained in:
Yang Tse 2009-04-14 13:50:32 +00:00
parent 2c27e24bb4
commit 9cc6ab3922
11 changed files with 33 additions and 6 deletions

View File

@ -44,7 +44,10 @@
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include "ares.h"
#include "ares_dns.h"
#include "ares_private.h"

View File

@ -44,7 +44,10 @@
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include "ares.h"
#include "ares_dns.h"
#include "inet_net_pton.h"

View File

@ -18,7 +18,10 @@
#include "setup.h"
#include <limits.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include "ares.h"
#include "ares_private.h"

View File

@ -29,6 +29,9 @@
#define HAVE_GETOPT_H 1
#endif
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <signal.h> header file. */
#define HAVE_SIGNAL_H 1

View File

@ -448,6 +448,7 @@ AC_CHECK_HEADERS(
strings.h \
stdbool.h \
time.h \
limits.h \
arpa/nameser.h \
arpa/nameser_compat.h \
arpa/inet.h,

View File

@ -30,6 +30,9 @@
/* Define if you have the <io.h> header file. */
#define HAVE_IO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you need the malloc.h header file even with stdlib.h */
#ifndef __SALFORDC__
#define NEED_MALLOC_H 1

View File

@ -30,6 +30,9 @@
/* Define if you have the <io.h> header file. */
#define HAVE_IO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you need the malloc.h header header file even with stdlib.h */
#define NEED_MALLOC_H 1

View File

@ -24,8 +24,10 @@
#include "setup.h"
#include <string.h>
#include <limits.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef NEED_MALLOC_H
#include <malloc.h>
#endif

View File

@ -27,7 +27,9 @@
#include <qsossl.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include <curl/curl.h>
#include "urldata.h"

View File

@ -31,7 +31,9 @@
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <limits.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include <libssh2.h>
#include <libssh2_sftp.h>

View File

@ -36,7 +36,9 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif