Commit ed173cc9 by Kaveh R. Ghazi Committed by Kaveh Ghazi

Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.

	* fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.

	* fixinc/gnu-regex.c: Don't include auto-host.h since we get
	config.h now.  Include libiberty.h to handle alloca.

From-SVN: r40283
parent 2077a6c5
2001-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.
* fixinc/gnu-regex.c: Don't include auto-host.h since we get
config.h now. Include libiberty.h to handle alloca.
2001-03-06 Zack Weinberg <zackw@stanford.edu> 2001-03-06 Zack Weinberg <zackw@stanford.edu>
* c-parse.in (yylexname): New function, split out of _yylex. * c-parse.in (yylexname): New function, split out of _yylex.
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
# Its purpose is to build the any-platforms fixinc.sh script. # Its purpose is to build the any-platforms fixinc.sh script.
FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS) FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS)
FIXINC_DEFS = -DIN_GCC $(FL_LIST) $(INCLUDES) FIXINC_DEFS = -DIN_GCC -DHAVE_CONFIG_H $(FL_LIST) $(INCLUDES)
# Directory where sources are, from where we are. # Directory where sources are, from where we are.
srcdir = @srcdir@ srcdir = @srcdir@
......
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
along with this program; if not, write to the Free Software Foundation, along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "auto-host.h"
/* GCC LOCAL: we don't need NLS here. */
#undef ENABLE_NLS
#undef _GNU_SOURCE #undef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
...@@ -33,6 +29,11 @@ ...@@ -33,6 +29,11 @@
# include <config.h> # include <config.h>
#endif #endif
/* GCC LOCAL: we don't need NLS here. */
#undef ENABLE_NLS
/* GCC LOCAL: to handle defining alloca. */
#include "libiberty.h"
/* Do not use a C alloca, we will leak memory and crash. */ /* Do not use a C alloca, we will leak memory and crash. */
#ifdef C_ALLOCA #ifdef C_ALLOCA
# define REGEX_MALLOC # define REGEX_MALLOC
......
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