summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-11-12 22:07:48 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-11-12 22:07:48 +0000
commitab423632c0e41eaacd513ae874640bc32a335c11 (patch)
treeb9ab1126884170751cad59ebdacf8e3116a4ebfb /src
parentfix type. note that a real fix should get rid of all the macros like SVG_ZOOM... (diff)
downloadinkscape-ab423632c0e41eaacd513ae874640bc32a335c11.tar.gz
inkscape-ab423632c0e41eaacd513ae874640bc32a335c11.zip
part of patch by David Evans to fix C++11 build
Fixed bugs: - https://launchpad.net/bugs/1244295 (bzr r12801)
Diffstat (limited to 'src')
-rw-r--r--src/trace/siox.cpp1
-rw-r--r--src/ui/tool/node.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp
index 92992d440..0706cfed1 100644
--- a/src/trace/siox.cpp
+++ b/src/trace/siox.cpp
@@ -11,6 +11,7 @@
#include <stdarg.h>
#include <map>
#include <algorithm>
+#include <cstdlib>
namespace org
diff --git a/src/ui/tool/node.h b/src/ui/tool/node.h
index e3fc6c2c8..b874949f5 100644
--- a/src/ui/tool/node.h
+++ b/src/ui/tool/node.h
@@ -16,7 +16,13 @@
#include <iosfwd>
#include <stdexcept>
#include <cstddef>
+
+#if __cplusplus >= 201103L
+#include <functional>
+#else
#include <tr1/functional>
+#endif
+
#include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp>
#include "ui/tool/selectable-control-point.h"
@@ -31,11 +37,13 @@ template <typename> class NodeIterator;
}
}
+#if __cplusplus < 201103L
namespace std {
namespace tr1 {
template <typename N> struct hash< Inkscape::UI::NodeIterator<N> >;
}
}
+#endif
namespace Inkscape {
namespace UI {