[gtk/wip/otte/listview: 2/15] video: Add header include guard



commit 71a8df6cb0d4961fb57ebed94e19fa46da1f39ee
Author: Benjamin Otte <otte redhat com>
Date:   Fri Sep 21 04:34:16 2018 +0200

    video: Add header include guard

 gtk/gtkmediacontrols.h | 4 ++++
 gtk/gtkvideo.h         | 4 ++++
 2 files changed, 8 insertions(+)
---
diff --git a/gtk/gtkmediacontrols.h b/gtk/gtkmediacontrols.h
index be399364ec..2dce1cba29 100644
--- a/gtk/gtkmediacontrols.h
+++ b/gtk/gtkmediacontrols.h
@@ -20,6 +20,10 @@
 #ifndef __GTK_MEDIA_CONTROLS_H__
 #define __GTK_MEDIA_CONTROLS_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkmediastream.h>
 #include <gtk/gtkwidget.h>
 
diff --git a/gtk/gtkvideo.h b/gtk/gtkvideo.h
index e0710c2ef6..cf20a8a08c 100644
--- a/gtk/gtkvideo.h
+++ b/gtk/gtkvideo.h
@@ -20,6 +20,10 @@
 #ifndef __GTK_VIDEO_H__
 #define __GTK_VIDEO_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkmediastream.h>
 #include <gtk/gtkwidget.h>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]