From f4c06c59e82cee390f68adb66a05acaca307566f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 31 Oct 2008 16:31:40 -0500 Subject: [PATCH] Making it so that including simple-node.h will generate an error --- src/conn-avoid-ref.cpp | 2 +- src/extension/implementation/script.cpp | 1 + src/xml/simple-node.cpp | 1 + src/xml/simple-node.h | 4 ++++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp index ac9064713..34c839c6f 100644 --- a/src/conn-avoid-ref.cpp +++ b/src/conn-avoid-ref.cpp @@ -18,7 +18,7 @@ #include "libavoid/polyutil.h" #include "libavoid/router.h" #include "libavoid/connector.h" -#include "xml/simple-node.h" +#include "xml/node.h" #include "document.h" #include "desktop.h" #include "desktop-handles.h" diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 964eb85d8..70b006d31 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -38,6 +38,7 @@ #include "dialogs/dialog-events.h" #include "application/application.h" #include "xml/node.h" +#include "xml/attribute-record.h" #include "util/glib-list-iterators.h" diff --git a/src/xml/simple-node.cpp b/src/xml/simple-node.cpp index 3cca393d2..7ecdc1b83 100644 --- a/src/xml/simple-node.cpp +++ b/src/xml/simple-node.cpp @@ -18,6 +18,7 @@ #include #include +#include "xml/node.h" #include "xml/simple-node.h" #include "xml/node-event-vector.h" #include "xml/node-fns.h" diff --git a/src/xml/simple-node.h b/src/xml/simple-node.h index 044068eb1..67070d0fc 100644 --- a/src/xml/simple-node.h +++ b/src/xml/simple-node.h @@ -11,6 +11,10 @@ * See the file COPYING for details. */ +#ifndef SEEN_INKSCAPE_XML_NODE_H +#error You have included xml/simple-node.h in your document, which is an implementation. Chances are that you want xml/node.h. Please fix that. +#endif + #ifndef SEEN_INKSCAPE_XML_SIMPLE_NODE_H #define SEEN_INKSCAPE_XML_SIMPLE_NODE_H -- 2.30.2