* configure.in: add AC_HEADER_STDC check.

* mmalloc.h: check if STDC_HEADERS instead of __STDC__.

        * mmprivate.h: check if STDC_HEADERS instead of __STDC__.

This change is necessary to build under AIX 3.2.5 w/ cc after Stan's
Oct 24 change.  I'm not convinced that changing mmalloc.h in this way
is such a good thing--if a directory that doesn't use autoconf (or one
that DOES use autoconf but doesn't put all the defines on the command
line), and it includes mmalloc.h, the right thing won't happen.

I believe gdb is the only directory which uses mmalloc, though, so
it should be OK.
This commit is contained in:
Jason Molenda
1995-11-05 03:12:15 +00:00
parent 1738bcd31b
commit c93a17b7ab
5 changed files with 1070 additions and 369 deletions

View File

@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA.
#include "mmalloc.h"
#ifdef __STDC__
#ifdef STDC_HEADERS
# include <limits.h>
# ifndef NULL
# define NULL (void *) 0