From a0b14cdf2bb8be79366cb5af2a90492f3237cdf2 Mon Sep 17 00:00:00 2001 From: espindola Date: Wed, 27 May 2009 12:57:59 +0000 Subject: 2009-05-27 Rafael Avila de Espindola * g++.dg/plugin/attribute_plugin.c: Include gcc-plugin.h first. * g++.dg/plugin/dumb_plugin.c: Include gcc-plugin.h first. * g++.dg/plugin/selfassign.c: Include gcc-plugin.h first. * gcc.dg/plugin/selfassign.c: Include gcc-plugin.h first. 2009-05-27 Rafael Avila de Espindola * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h with it. * doc/plugins.texi: Document that gcc-plugin.h must be the first to be included. * gcc-plugin.h: Include config.h and system.h. (IN_GCC): Define if not defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147908 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gcc-plugin.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/gcc-plugin.h') diff --git a/gcc/gcc-plugin.h b/gcc/gcc-plugin.h index 2567bf730d2..1588bca372c 100644 --- a/gcc/gcc-plugin.h +++ b/gcc/gcc-plugin.h @@ -20,6 +20,13 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_PLUGIN_H #define GCC_PLUGIN_H +#ifndef IN_GCC +#define IN_GCC +#endif + +#include "config.h" +#include "system.h" + /* Event names. Keep in sync with plugin_event_name[]. */ enum plugin_event { -- cgit v1.2.1