libgimp*: add guards that #error out if individual files are included

This only helps to maintain proper includes in app/ and shouldn't
affect plug-ins at all, because these are supposed to only include the
main headers from libgimp/ since the beginning of time.

The gimpfootypes.h files do not have these guards, so we can continue
to maintain app/'s include policy that is very likely to error out if
wrong things are included.
This commit is contained in:
Michael Natterer
2011-04-28 14:30:41 +02:00
parent ee03177be8
commit 844df2b4df
104 changed files with 408 additions and 20 deletions

View File

@ -21,6 +21,7 @@
#ifndef __GIMP_MATH_H__
#define __GIMP_MATH_H__
#include <math.h>
#ifdef HAVE_IEEEFP_H
@ -31,12 +32,17 @@
#include <float.h>
#endif
#define __GIMP_MATH_H_INSIDE__
#include <libgimpmath/gimpmathtypes.h>
#include <libgimpmath/gimpmatrix.h>
#include <libgimpmath/gimpmd5.h>
#include <libgimpmath/gimpvector.h>
#undef __GIMP_MATH_H_INSIDE__
G_BEGIN_DECLS