[clutter-gst] headers: add missing protections against direct header inclusion



commit 98e154d08d128cdc53a7afb1d290acbe56d35976
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Thu Mar 14 17:01:32 2013 +0000

    headers: add missing protections against direct header inclusion

 clutter-gst/clutter-gst-aspectratio.h |    4 ++++
 clutter-gst/clutter-gst-playback.h    |    4 ++++
 clutter-gst/clutter-gst-player.h      |    4 ++++
 3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-aspectratio.h b/clutter-gst/clutter-gst-aspectratio.h
index 0419e96..de5e4bd 100644
--- a/clutter-gst/clutter-gst-aspectratio.h
+++ b/clutter-gst/clutter-gst-aspectratio.h
@@ -26,6 +26,10 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
+#error "Only <clutter-gst/clutter-gst.h> can be include directly."
+#endif
+
 #ifndef __CLUTTER_GST_ASPECTRATIO_H__
 #define __CLUTTER_GST_ASPECTRATIO_H__
 
diff --git a/clutter-gst/clutter-gst-playback.h b/clutter-gst/clutter-gst-playback.h
index 1be5084..c44679b 100644
--- a/clutter-gst/clutter-gst-playback.h
+++ b/clutter-gst/clutter-gst-playback.h
@@ -1,5 +1,9 @@
 /* clutter-gst-playback.h */
 
+#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
+#error "Only <clutter-gst/clutter-gst.h> can be include directly."
+#endif
+
 #ifndef __CLUTTER_GST_PLAYBACK_H__
 #define __CLUTTER_GST_PLAYBACK_H__
 
diff --git a/clutter-gst/clutter-gst-player.h b/clutter-gst/clutter-gst-player.h
index 012d2e1..ede3f64 100644
--- a/clutter-gst/clutter-gst-player.h
+++ b/clutter-gst/clutter-gst-player.h
@@ -31,6 +31,10 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
+#error "Only <clutter-gst/clutter-gst.h> can be include directly."
+#endif
+
 #ifndef __CLUTTER_GST_PLAYER_H__
 #define __CLUTTER_GST_PLAYER_H__
 


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