[evince] [libdocument] Add single headers guards
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Subject: [evince] [libdocument] Add single headers guards
- Date: Sat, 23 May 2009 11:37:35 -0400 (EDT)
commit 26b1533e697112e62c0373f5d38ebf18d0f491f4
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat May 23 17:36:35 2009 +0200
[libdocument] Add single headers guards
---
libdocument/ev-annotation.h | 4 ++++
libdocument/ev-document-annotations.h | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h
index 47d908d..456710c 100644
--- a/libdocument/ev-annotation.h
+++ b/libdocument/ev-annotation.h
@@ -19,6 +19,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
#ifndef EV_ANNOTATION_H
#define EV_ANNOTATION_H
diff --git a/libdocument/ev-document-annotations.h b/libdocument/ev-document-annotations.h
index 3942ecf..ada6b37 100644
--- a/libdocument/ev-document-annotations.h
+++ b/libdocument/ev-document-annotations.h
@@ -18,6 +18,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
#ifndef EV_DOCUMENT_ANNOTATIONS_H
#define EV_DOCUMENT_ANNOTATIONS_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]