diff options
author | Daniel Boles <dboles@src.gnome.org> | 2017-08-05 18:44:02 +0100 |
---|---|---|
committer | Daniel Boles <dboles@src.gnome.org> | 2017-08-05 18:44:02 +0100 |
commit | 4accb9f1679f08ab64a945800d733f51361d0f42 (patch) | |
tree | 3f96798dd877cff95473e88382424ca7a6e05b6e /gtk/gtkcenterbox.h | |
parent | 8f22078787c86d3b914e82daa62140b324e8681c (diff) | |
download | gtk+-4accb9f1679f08ab64a945800d733f51361d0f42.tar.gz |
CenterBox: Guard against directly including header
https://bugzilla.gnome.org/show_bug.cgi?id=785280
Diffstat (limited to 'gtk/gtkcenterbox.h')
-rw-r--r-- | gtk/gtkcenterbox.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcenterbox.h b/gtk/gtkcenterbox.h index 4c8e7ad21a..bfd68f80e9 100644 --- a/gtk/gtkcenterbox.h +++ b/gtk/gtkcenterbox.h @@ -22,6 +22,10 @@ #ifndef __GTK_CENTER_BOX_H__ #define __GTK_CENTER_BOX_H__ +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only <gtk/gtk.h> can be included directly." +#endif + #include "gtkwidget.h" G_BEGIN_DECLS |