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:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user