summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorAdib Taraben <theadib@gmail.com>2011-02-27 20:48:16 +0000
committertheAdib <theadib@gmail.com>2011-02-27 20:48:16 +0000
commit76ad5cbf7bbdd4272b2d49387fdc10ca808767d7 (patch)
tree8402ccf23ed6b123fc24c49b7e33898e3919a6e3 /src/util
parentTutorials. Japanese tutorials update by Masato HASHIMOTO. (diff)
downloadinkscape-76ad5cbf7bbdd4272b2d49387fdc10ca808767d7.tar.gz
inkscape-76ad5cbf7bbdd4272b2d49387fdc10ca808767d7.zip
compatibility patch to compile using gcc 4.6
Fixed bugs: - https://launchpad.net/bugs/707205 (bzr r10070.1.1)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/forward-pointer-iterator.h1
-rw-r--r--src/util/share.h1
-rw-r--r--src/util/unordered-containers.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/util/forward-pointer-iterator.h b/src/util/forward-pointer-iterator.h
index 198225d5f..4d1cfa413 100644
--- a/src/util/forward-pointer-iterator.h
+++ b/src/util/forward-pointer-iterator.h
@@ -15,6 +15,7 @@
#define SEEN_INKSCAPE_UTIL_FORWARD_POINTER_ITERATOR_H
#include <iterator>
+#include <cstddef>
#include "util/reference.h"
namespace Inkscape {
diff --git a/src/util/share.h b/src/util/share.h
index 4891b9588..6b5e6a4ef 100644
--- a/src/util/share.h
+++ b/src/util/share.h
@@ -14,6 +14,7 @@
#include "gc-core.h"
#include <cstring>
+#include <cstddef>
namespace Inkscape {
namespace Util {
diff --git a/src/util/unordered-containers.h b/src/util/unordered-containers.h
index 9411657a5..6f738f0ce 100644
--- a/src/util/unordered-containers.h
+++ b/src/util/unordered-containers.h
@@ -41,6 +41,8 @@
# define INK_UNORDERED_MAP __gnu_cxx::hash_map
# define INK_HASH __gnu_cxx::hash
+#include <cstddef>
+
namespace __gnu_cxx {
// hash function for pointers
// TR1 and Boost have this defined by default, __gnu_cxx doesn't