[glib] Add missign single include guards
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add missign single include guards
- Date: Sun, 21 Feb 2010 21:14:55 +0000 (UTC)
commit 21080a33e12e87144e0534cd18b3699a9dbc2f36
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 21 16:12:35 2010 -0500
Add missign single include guards
Reported in bug 609530. patch by Christian Dywan.
gio/gcharsetconverter.h | 4 ++++
gio/gnativevolumemonitor.h | 4 ++++
gio/gzlibcompressor.h | 4 ++++
gio/gzlibdecompressor.h | 4 ++++
4 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gio/gcharsetconverter.h b/gio/gcharsetconverter.h
index fcf4aa4..5198d46 100644
--- a/gio/gcharsetconverter.h
+++ b/gio/gcharsetconverter.h
@@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_CHARSET_CONVERTER_H__
#define __G_CHARSET_CONVERTER_H__
diff --git a/gio/gnativevolumemonitor.h b/gio/gnativevolumemonitor.h
index 9c859fe..d6c5cce 100644
--- a/gio/gnativevolumemonitor.h
+++ b/gio/gnativevolumemonitor.h
@@ -1,3 +1,7 @@
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_NATIVE_VOLUME_MONITOR_H__
#define __G_NATIVE_VOLUME_MONITOR_H__
diff --git a/gio/gzlibcompressor.h b/gio/gzlibcompressor.h
index 7f6d80f..0e14a80 100644
--- a/gio/gzlibcompressor.h
+++ b/gio/gzlibcompressor.h
@@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_ZLIB_COMPRESSOR_H__
#define __G_ZLIB_COMPRESSOR_H__
diff --git a/gio/gzlibdecompressor.h b/gio/gzlibdecompressor.h
index a2ec7b3..fa334c2 100644
--- a/gio/gzlibdecompressor.h
+++ b/gio/gzlibdecompressor.h
@@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_ZLIB_DECOMPRESSOR_H__
#define __G_ZLIB_DECOMPRESSOR_H__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]