Skip to content

Commit

Permalink
Removed no longer needed header checks
Browse files Browse the repository at this point in the history
  • Loading branch information
westes committed Dec 27, 2015
1 parent 5b856d1 commit 3efb40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 1 addition & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ fi

# checks for headers

AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h stddef.h stdlib.h string.h strings.h unistd.h])
AC_CHECK_HEADERS([inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h unistd.h])

# checks for libraries

Expand Down
11 changes: 1 addition & 10 deletions src/flexdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include <config.h>
#endif

#ifdef STDC_HEADERS
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
Expand All @@ -48,7 +47,7 @@
#include <libgen.h> /* for XPG version of basename(3) */
#include <string.h>
#include <math.h>
#endif

#ifdef HAVE_ASSERT_H
#include <assert.h>
#else
Expand All @@ -70,16 +69,8 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
#define bool int
#define true 1
#define false 0
#endif
#ifdef HAVE_REGEX_H
#include <regex.h>
#endif
Expand Down

0 comments on commit 3efb40d

Please sign in to comment.