Commit 13616f8f authored by Yang Tse's avatar Yang Tse
Browse files

Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H...

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>.
parent ab486d1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ AC_DEFUN([CURL_CHECK_HEADER_MALLOC], [
    case "$curl_cv_need_header_malloc_h" in
      yes)
        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
  fi
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ AC_DEFUN([CURL_CHECK_HEADER_MALLOC], [
    case "$curl_cv_need_header_malloc_h" in
      yes)
        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
  fi
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@
/* Define if you have the <malloc.h> header file. */
#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 if you have the <memory.h> header file. */
+1 −1
Original line number Diff line number Diff line
@@ -290,7 +290,7 @@
/* Define to 1 if you have the <malloc.h> header file. */
/* #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 */

/* Define to 1 if you have the <memory.h> header file. */
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
#define HAVE_MALLOC_H 1
#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__
#define NEED_MALLOC_H 1
#endif
Loading