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

@ -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