diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2013-03-26 16:03:49 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@googlemail.com> | 2013-03-26 16:03:49 +0000 |
| commit | d2bba282171a9e2c70a624794650689ec4531047 (patch) | |
| tree | 726ae8aa2ae75cc8272f13fa09ed8abc56e60724 /src/dom | |
| parent | Revert r12183 and replace with better work-around for Pango bug (incorrect (diff) | |
| download | inkscape-d2bba282171a9e2c70a624794650689ec4531047.tar.gz inkscape-d2bba282171a9e2c70a624794650689ec4531047.zip | |
Fix Glibmm inclusions for Gtk+ 3 builds and implement a Gtk+ 3 compatible check for X11 backend
Fixed bugs:
- https://launchpad.net/bugs/1160252
- https://launchpad.net/bugs/1122774
(bzr r12247)
Diffstat (limited to 'src/dom')
| -rw-r--r-- | src/dom/dom.h | 4 | ||||
| -rw-r--r-- | src/dom/io/domstream.cpp | 5 | ||||
| -rw-r--r-- | src/dom/uri.cpp | 9 | ||||
| -rw-r--r-- | src/dom/views.h | 5 | ||||
| -rw-r--r-- | src/dom/xpathparser.cpp | 3 |
5 files changed, 10 insertions, 16 deletions
diff --git a/src/dom/dom.h b/src/dom/dom.h index 22fd09ebf..14165166e 100644 --- a/src/dom/dom.h +++ b/src/dom/dom.h @@ -60,9 +60,9 @@ */ #ifdef DOM_STANDALONE -#include <string> +# include <string> #else -#include <glibmm.h> +# include <glibmm/ustring.h> #endif //# Unfortunate hack for a name collision diff --git a/src/dom/io/domstream.cpp b/src/dom/io/domstream.cpp index 7118025d6..1f08c0eee 100644 --- a/src/dom/io/domstream.cpp +++ b/src/dom/io/domstream.cpp @@ -34,9 +34,10 @@ * */ +#include <cmath> +#include <cstdarg> #include <cstdio> -#include <math.h> -#include <stdarg.h> +#include <cstdlib> #include "domstream.h" #include "dom/ucd.h" diff --git a/src/dom/uri.cpp b/src/dom/uri.cpp index e1089017d..231995daf 100644 --- a/src/dom/uri.cpp +++ b/src/dom/uri.cpp @@ -27,17 +27,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - - - #include "uri.h" #include "ucd.h" -#include <stdio.h> -#include <stdarg.h> +#include <cstdarg> +#include <cstdio> +#include <cstdlib> #include <vector> - namespace org { namespace w3c diff --git a/src/dom/views.h b/src/dom/views.h index f165d2a9b..f1154fb62 100644 --- a/src/dom/views.h +++ b/src/dom/views.h @@ -45,12 +45,9 @@ * Be prepared in the future to adjust to this, if SVG ever switches . */ - - +#include <cstdlib> #include "dom.h" - - namespace org { namespace w3c diff --git a/src/dom/xpathparser.cpp b/src/dom/xpathparser.cpp index b19975966..4785ce93f 100644 --- a/src/dom/xpathparser.cpp +++ b/src/dom/xpathparser.cpp @@ -27,10 +27,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "ucd.h" #include "xpathparser.h" - +#include <cstdlib> namespace org { |
