GNOME Bugzilla – Bug 750000
Can not #include both gegl.h and gegl-plugin.h
Last modified: 2015-05-28 00:57:47 UTC
#including gegl.h and gegl-plugin.h in the same file breaks the build because ‘gegl_operation_list_properties’ gets declared twice and -Wredundant-decls is triggered. This is how it goes: gegl.h gegl-operations-util.h gegl_operation_list_properties gegl-plugin.h operation/gegl-operation.h gegl_operation_list_properties One might argue that there is no need to have both gegl.h and gegl-plugin.h because the latter #includes the former, but an application shouldn't have to care and our public headers should really be robust against things like these.
Created attachment 304115 [details] [review] Make it possible to #include both gegl.h and gegl-plugin.h
commit 5087c229a606b00c255c1f3da5b4e2923c89c071 Author: Debarshi Ray <debarshir@gnome.org> Date: Thu May 28 00:55:58 2015 +0200 Make it possible to #include both gegl.h and gegl-plugin.h https://bugzilla.gnome.org/show_bug.cgi?id=750000