added -DGIMP_APP_GLUE_COMPILATION to AM_CPPFLAGS.

2002-12-04  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am: added -DGIMP_APP_GLUE_COMPILATION to
	AM_CPPFLAGS.

	* app/appenv.h
	* app/batch.h
	* app/errors.h: #error if it is not defined to keep these files
	from being included from anywhere else.

	* app/app_procs.h: added just a #warning because some places still
	need "the_gimp" and app_exit().

	* app/libgimp_glue.h: #ifdef the #error the same way as the other
	headers do.
This commit is contained in:
Michael Natterer 2002-12-04 12:26:39 +00:00 committed by Michael Natterer
parent 9775e144f8
commit d79ac2492b
7 changed files with 36 additions and 5 deletions

View File

@ -1,3 +1,19 @@
2002-12-04 Michael Natterer <mitch@gimp.org>
* app/Makefile.am: added -DGIMP_APP_GLUE_COMPILATION to
AM_CPPFLAGS.
* app/appenv.h
* app/batch.h
* app/errors.h: #error if it is not defined to keep these files
from being included from anywhere else.
* app/app_procs.h: added just a #warning because some places still
need "the_gimp" and app_exit().
* app/libgimp_glue.h: #ifdef the #error the same way as the other
headers do.
2002-12-03 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplay-foreach.[ch]: renamed

View File

@ -84,8 +84,9 @@ endif
gimp_1_3_LDFLAGS = -export-dynamic -export-symbols $(srcdir)/gimp.sym
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gimp\" \
@GIMP_THREAD_FLAGS@ \
-DG_LOG_DOMAIN=\"Gimp\" \
-DGIMP_APP_GLUE_COMPILATION \
@GIMP_THREAD_FLAGS@ \
@GIMP_MP_FLAGS@
INCLUDES = \

View File

@ -19,6 +19,9 @@
#ifndef __APP_PROCS_H__
#define __APP_PROCS_H__
#ifndef GIMP_APP_GLUE_COMPILATION
#warning FIXME: Dont #include "app_procs.h"
#endif
/*
* this is a temp hack

View File

@ -19,6 +19,10 @@
#ifndef __APPENV_H__
#define __APPENV_H__
#ifndef GIMP_APP_GLUE_COMPILATION
#error You must not #include "appenv.h" from an app/ subdir
#endif
/* command line options */
extern gboolean no_interface;

View File

@ -19,6 +19,10 @@
#ifndef __BATCH_H__
#define __BATCH_H__
#ifndef GIMP_APP_GLUE_COMPILATION
#error You must not #include "batch.h" from an app/ subdir
#endif
void batch_init (Gimp *gimp,
gchar **batch_cmds);

View File

@ -19,6 +19,10 @@
#ifndef __ERRORS_H__
#define __ERRORS_H__
#ifndef GIMP_APP_GLUE_COMPILATION
#error You must not #include "errors.h" from an app/ subdir
#endif
void gimp_message_log_func (const gchar *log_domain,
GLogLevelFlags flags,

View File

@ -19,9 +19,8 @@
#ifndef __LIBGIMP_GLUE_H__
#define __LIBGIMP_GLUE_H__
#if !defined (__LIBGIMP_GLUE_C__)
#error "You must not include app/libgimp_glue.h."
#ifndef __LIBGIMP_GLUE_C__
#error You must not #include "libgimp_glue.h"
#endif