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

Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.

This commit is contained in:
Yang Tse 2006-07-25 13:49:49 +00:00
parent ab486d1e27
commit 13616f8f96
16 changed files with 16 additions and 16 deletions

View File

@ -215,7 +215,7 @@ AC_DEFUN([CURL_CHECK_HEADER_MALLOC], [
case "$curl_cv_need_header_malloc_h" in case "$curl_cv_need_header_malloc_h" in
yes) yes)
AC_DEFINE_UNQUOTED(NEED_MALLOC_H, 1, AC_DEFINE_UNQUOTED(NEED_MALLOC_H, 1,
[Define to 1 if you need the malloc.h header file.]) [Define to 1 if you need the malloc.h header file even with stdlib.h])
;; ;;
esac esac
fi fi

View File

@ -193,7 +193,7 @@ AC_DEFUN([CURL_CHECK_HEADER_MALLOC], [
case "$curl_cv_need_header_malloc_h" in case "$curl_cv_need_header_malloc_h" in
yes) yes)
AC_DEFINE_UNQUOTED(NEED_MALLOC_H, 1, AC_DEFINE_UNQUOTED(NEED_MALLOC_H, 1,
[Define to 1 if you need the malloc.h header file.]) [Define to 1 if you need the malloc.h header file even with stdlib.h])
;; ;;
esac esac
fi fi

View File

@ -170,7 +170,7 @@
/* Define if you have the <malloc.h> header file. */ /* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H #define HAVE_MALLOC_H
/* Define if you need the malloc.h header file. */ /* Define if you need the malloc.h header file even with stdlib.h */
/* #define NEED_MALLOC_H 1 */ /* #define NEED_MALLOC_H 1 */
/* Define if you have the <memory.h> header file. */ /* Define if you have the <memory.h> header file. */

View File

@ -290,7 +290,7 @@
/* Define to 1 if you have the <malloc.h> header file. */ /* Define to 1 if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */ /* #undef HAVE_MALLOC_H */
/* Define to 1 if you need the malloc.h header file. */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */

View File

@ -41,7 +41,7 @@
#define HAVE_MALLOC_H 1 #define HAVE_MALLOC_H 1
#endif #endif
/* Define if you need the malloc.h header file. */ /* Define if you need the malloc.h header file even with stdlib.h */
#ifndef __SALFORDC__ #ifndef __SALFORDC__
#define NEED_MALLOC_H 1 #define NEED_MALLOC_H 1
#endif #endif

View File

@ -39,7 +39,7 @@
/* Define if you have the <malloc.h> header file. */ /* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1 #define HAVE_MALLOC_H 1
/* Define if you need the malloc.h header file. */ /* Define if you need the malloc.h header header file even with stdlib.h */
#define NEED_MALLOC_H 1 #define NEED_MALLOC_H 1
/* Define if you have the <netdb.h> header file. */ /* Define if you have the <netdb.h> header file. */

View File

@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -26,7 +26,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -26,7 +26,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H

View File

@ -36,7 +36,7 @@
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H) #ifdef NEED_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#include <errno.h> #include <errno.h>

View File

@ -115,7 +115,7 @@
/* Define if you have the <malloc.h> header file. */ /* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1 #define HAVE_MALLOC_H 1
/* Define if you need the malloc.h header file. */ /* Define if you need the malloc.h header header file even with stdlib.h */
/* #define NEED_MALLOC_H 1 */ /* #define NEED_MALLOC_H 1 */
/* Define if you have the <net/if.h> header file. */ /* Define if you have the <net/if.h> header file. */

View File

@ -176,7 +176,7 @@
/* Define if you have the <malloc.h> header file. */ /* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H #define HAVE_MALLOC_H
/* Define to 1 if you need the malloc.h header file. */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #define NEED_MALLOC_H 1 */ /* #define NEED_MALLOC_H 1 */
/* Define if you have the <memory.h> header file. */ /* Define if you have the <memory.h> header file. */