Commit d79ac249 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

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.
parent 9775e144
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
......
......@@ -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 = \
......
......@@ -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
......
......@@ -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;
......
......@@ -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);
......
......@@ -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,
......
......@@ -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
......
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