[vte] Prevent single inclusion of vtedeprecated.h
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Prevent single inclusion of vtedeprecated.h
- Date: Wed, 24 Mar 2010 13:15:28 +0000 (UTC)
commit d08ab3e5641e6f486e1918d32566bec104924698
Author: Christian Persch <chpe gnome org>
Date: Wed Mar 24 14:15:08 2010 +0100
Prevent single inclusion of vtedeprecated.h
src/vte.h | 2 ++
src/vtedeprecated.h | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.h b/src/vte.h
index 666ef29..dac4970 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -487,7 +487,9 @@ gboolean vte_terminal_write_contents (VteTerminal *terminal,
G_END_DECLS
#ifndef VTE_DISABLE_DEPRECATED
+#define __VTE_VTE_H_INSIDE__ 1
#include "vtedeprecated.h"
+#undef __VTE_VTE_H_INSIDE__
#endif /* VTE_DISABLE_DEPRECATED */
#endif
diff --git a/src/vtedeprecated.h b/src/vtedeprecated.h
index ca34201..7f707e8 100644
--- a/src/vtedeprecated.h
+++ b/src/vtedeprecated.h
@@ -16,6 +16,10 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#if !defined (__VTE_VTE_H_INSIDE__) && !defined (VTE_COMPILATION)
+#error "Only <vte/vte.h> can be included directly."
+#endif
+
#ifndef vte_deprecated_h_included
#define vte_deprecated_h_included
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]