Commit 47aeab85 authored by Erwin Janssen's avatar Erwin Janssen

Remove define and usage of HAVE_STDLIB_H

The header stdlib.h is always present since we are compiling with standard C.
There is no need for this check, since it will always evaluate to true.
parent 17db0c43
......@@ -22,10 +22,7 @@ typedef void *Tobj;
#include "config.h"
#include "dot2l.h"
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <stdlib.h>
#include <string.h>
static char portstr[SMALLBUF];
......
......@@ -79,9 +79,7 @@
extern void qsort ();
#endif /* defined (SVR4) || defined (SYSV) || defined (USG) */
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <stdlib.h>
#include "SFDecls.h"
......
......@@ -58,9 +58,7 @@ extern uid_t getuid ();
extern void qsort ();
#endif /* defined (SVR4) || defined (SYSV) || defined (USG) */
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include "SFDecls.h"
......
......@@ -101,9 +101,7 @@ extern char *sys_errlist[];
extern char *getwd (char *);
#endif /* !defined (SVR4) && !defined (SYSV) && !defined (USG) */
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <stdlib.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
......
......@@ -21,9 +21,7 @@ extern "C" {
#include "config.h"
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <string.h>
#include "cgraph.h"
......
......@@ -39,7 +39,6 @@ hdr stdarg
hdr stdbool
hdr stddef
hdr stdint
hdr stdlib
hdr string
hdr strings
hdr termios
......@@ -84,9 +83,7 @@ else {
endif
link{
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_STDINT_H
#include <stdint.h>
#endif
......
......@@ -425,7 +425,7 @@ dnl -----------------------------------
dnl Checks for header files
# AC_HEADER_STDC
AC_CHECK_HEADERS(stdarg.h stddef.h stddef.h stdlib.h stdint.h malloc.h \
AC_CHECK_HEADERS(stdarg.h stddef.h stddef.h stdint.h malloc.h \
fcntl.h search.h pthread.h values.h float.h limits.h termios.h \
errno.h time.h unistd.h fenv.h string.h strings.h inttypes.h setjmp.h \
sys/time.h sys/times.h sys/types.h sys/select.h fpu_control.h \
......
......@@ -22,7 +22,6 @@ extern "C" {
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_STDLIB_H
#if !defined(WIN32) && !defined(DARWIN)
#define __USE_GNU
#include <stdlib.h>
......@@ -30,7 +29,6 @@ extern "C" {
#else
#include <stdlib.h>
#endif
#endif
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
......
......@@ -33,9 +33,7 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <time.h>
#ifndef WIN32
#include <unistd.h>
......
......@@ -13,9 +13,7 @@
#include "config.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
......
......@@ -87,9 +87,7 @@ typedef void *Tobj;
#include "dot2l.h"
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <stdlib.h>
#include <string.h>
static char portstr[SMALLBUF];
......
......@@ -298,9 +298,6 @@
/* Define to 1 if you have the <stdint.h> header file. */
//#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strcasecmp' function. */
//#define HAVE_STRCASECMP 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment