From: Jesse Thilo Date: Wed, 19 May 1999 11:24:34 +0000 (+0000) Subject: Protected inclusion of "config.h" with HAVE_CONFIG_H. X-Git-Tag: GNU_1_28~12 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/e0d27f5f0827105796a8e47180d89d091bfa1b50 Protected inclusion of "config.h" with HAVE_CONFIG_H. --- diff --git a/src/alloc.h b/src/alloc.h index 855e4a8f..9685122e 100644 --- a/src/alloc.h +++ b/src/alloc.h @@ -19,7 +19,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #define NEW(t) ((t *) xmalloc((unsigned) sizeof(t))) #define NEW2(n, t) ((t *) xmalloc((unsigned) ((n) * sizeof(t)))) diff --git a/src/symtab.h b/src/symtab.h index 71b96b27..03e2ea1c 100644 --- a/src/symtab.h +++ b/src/symtab.h @@ -18,7 +18,9 @@ along with Bison; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #define TABSIZE 1009 diff --git a/src/version.c b/src/version.c index 5cb018a3..61596f91 100644 --- a/src/version.c +++ b/src/version.c @@ -1,3 +1,5 @@ +#ifdef HAVE_CONFIG_H #include +#endif char *version_string = "GNU Bison version " VERSION "\n";