Index: src/dom/lsimpl.cpp =================================================================== --- src/dom/lsimpl.cpp.orig +++ src/dom/lsimpl.cpp @@ -33,6 +33,7 @@ #include "lsimpl.h" #include +#include namespace org { Index: src/dom/domimpl.cpp =================================================================== --- src/dom/domimpl.cpp.orig +++ src/dom/domimpl.cpp @@ -28,6 +28,7 @@ */ +#include #include "domimpl.h" namespace org Index: src/dom/io/domstream.h =================================================================== --- src/dom/io/domstream.h.orig +++ src/dom/io/domstream.h @@ -30,7 +30,7 @@ */ - +#include #include namespace org Index: src/dom/io/uristream.cpp =================================================================== --- src/dom/io/uristream.cpp.orig +++ src/dom/io/uristream.cpp @@ -41,6 +41,8 @@ #include "uristream.h" +#include +#include Index: src/dom/io/socket.cpp =================================================================== --- src/dom/io/socket.cpp.orig +++ src/dom/io/socket.cpp @@ -35,6 +35,7 @@ #include // needed on Solaris 8 #endif +#include #include "socket.h" #include "dom/util/thread.h" Index: src/dom/io/domstream.cpp =================================================================== --- src/dom/io/domstream.cpp.orig +++ src/dom/io/domstream.cpp @@ -34,6 +34,7 @@ * */ +#include #include #include Index: src/dom/xpathtoken.h =================================================================== --- src/dom/xpathtoken.h.orig +++ src/dom/xpathtoken.h @@ -35,6 +35,7 @@ #include +#include #include namespace org Index: src/prefix.cpp =================================================================== --- src/prefix.cpp.orig +++ src/prefix.cpp @@ -355,7 +355,8 @@ br_strndup (char *str, size_t size) char * br_extract_dir (const char *path) { - char *end, *result; + const char *end; + char *result; br_return_val_if_fail (path != (char*)NULL, (char*)NULL); @@ -390,7 +391,8 @@ br_extract_dir (const char *path) char * br_extract_prefix (const char *path) { - char *end, *tmp, *result; + const char *end; + char *tmp, *result; br_return_val_if_fail (path != (char*)NULL, (char*)NULL); Index: src/2geom/sbasis-math.cpp =================================================================== --- src/2geom/sbasis-math.cpp.orig +++ src/2geom/sbasis-math.cpp @@ -37,12 +37,12 @@ #include "sbasis-math.h" //#define ZERO 1e-3 +#include +#include -namespace Geom { +namespace Geom { -#include -#include //-|x|----------------------------------------------------------------------- Piecewise abs(SBasis const &f){ Index: src/xml/event.cpp =================================================================== --- src/xml/event.cpp.orig +++ src/xml/event.cpp @@ -14,6 +14,7 @@ */ #include // g_assert() +#include #include "event.h" #include "event-fns.h" Index: src/dialogs/export.cpp =================================================================== --- src/dialogs/export.cpp.orig +++ src/dialogs/export.cpp @@ -20,6 +20,9 @@ # include "config.h" #endif +// This has to be included prior to anything that includes setjmp.h, it croaks otherwise +#include + #include #include #include @@ -60,7 +63,6 @@ #include "io/sys.h" #include "helper/png-write.h" -#include #define SP_EXPORT_MIN_SIZE 1.0 @@ -1041,7 +1043,7 @@ create_progress_dialog (GtkObject *base, static gchar * filename_add_extension (const gchar *filename, const gchar *extension) { - gchar *dot; + const gchar *dot; dot = strrchr (filename, '.'); if ( !dot ) Index: src/sp-image.cpp =================================================================== --- src/sp-image.cpp.orig +++ src/sp-image.cpp @@ -17,6 +17,9 @@ # include "config.h" #endif +// This has to be included prior to anything that includes setjmp.h, it croaks otherwise +#include + #include #include #include @@ -41,7 +44,6 @@ #include "libnr/nr-matrix-fns.h" #include "io/sys.h" -#include #if ENABLE_LCMS #include "color-profile-fns.h" #include "color-profile.h" Index: src/document.cpp =================================================================== --- src/document.cpp.orig +++ src/document.cpp @@ -746,7 +746,7 @@ Glib::ustring SPDocument::getLanguage() } if ( NULL != document_language ) { - gchar *pos = strchr(document_language, '_'); + const char *pos = strchr(document_language, '_'); if ( NULL != pos ) { return Glib::ustring(document_language, pos - document_language); } Index: src/libavoid/vertices.h =================================================================== --- src/libavoid/vertices.h.orig +++ src/libavoid/vertices.h @@ -27,6 +27,7 @@ #include #include #include +#include #include "libavoid/geomtypes.h" namespace Avoid { Index: src/libnr/nr-matrix-fns.cpp =================================================================== --- src/libnr/nr-matrix-fns.cpp.orig +++ src/libnr/nr-matrix-fns.cpp @@ -1,4 +1,5 @@ #include +#include namespace NR { Index: src/main.cpp =================================================================== --- src/main.cpp.orig +++ src/main.cpp @@ -28,6 +28,9 @@ #endif #include "path-prefix.h" +// This has to be included prior to anything that includes setjmp.h, it croaks otherwise +#include + #include #ifdef HAVE_IEEEFP_H @@ -111,7 +114,6 @@ using Inkscape::Extension::Internal::Pri #include "main-cmdlineact.h" -#include #include enum { Index: src/io/inkscapestream.h =================================================================== --- src/io/inkscapestream.h.orig +++ src/io/inkscapestream.h @@ -12,6 +12,7 @@ */ +#include #include #include Index: src/io/gzipstream.cpp =================================================================== --- src/io/gzipstream.cpp.orig +++ src/io/gzipstream.cpp @@ -14,6 +14,7 @@ */ #include "gzipstream.h" +#include #include #include Index: src/streams-handles.cpp =================================================================== --- src/streams-handles.cpp.orig +++ src/streams-handles.cpp @@ -12,6 +12,7 @@ #include "streams-handles.h" #include "uri.h" +#include #include namespace Inkscape { Index: src/streams-zlib.cpp =================================================================== --- src/streams-zlib.cpp.orig +++ src/streams-zlib.cpp @@ -9,6 +9,7 @@ * Released under GNU LGPL, read the file 'COPYING.LIB' for more information */ +#include #include #include #include Index: src/dom/svg/svgtypes.h =================================================================== --- src/dom/svg/svgtypes.h.orig +++ src/dom/svg/svgtypes.h @@ -47,6 +47,7 @@ #include "dom/smil.h" +#include #include Index: src/dom/svg/svgparser.cpp =================================================================== --- src/dom/svg/svgparser.cpp.orig +++ src/dom/svg/svgparser.cpp @@ -32,6 +32,7 @@ #include "dom/cssparser.h" #include "dom/charclass.h" +#include #include #define SVG_NAMESPACE "http://www.w3.org/2000/svg" Index: src/io/sys.cpp =================================================================== --- src/io/sys.cpp.orig +++ src/io/sys.cpp @@ -22,6 +22,7 @@ #include #include +#include #include "prefs-utils.h" #include "sys.h" Index: src/2geom/svg-path-parser.h =================================================================== --- src/2geom/svg-path-parser.h.orig +++ src/2geom/svg-path-parser.h @@ -32,6 +32,7 @@ #ifndef SEEN_SVG_PATH_PARSER_H #define SEEN_SVG_PATH_PARSER_H +#include #include #include #include Index: src/libnr/nr-matrix.cpp =================================================================== --- src/libnr/nr-matrix.cpp.orig +++ src/libnr/nr-matrix.cpp @@ -11,6 +11,7 @@ * This code is in public domain */ +#include #include #include "nr-matrix.h" Index: src/libnr/nr-object.cpp =================================================================== --- src/libnr/nr-object.cpp.orig +++ src/libnr/nr-object.cpp @@ -198,8 +198,8 @@ NRObject *NRObject::alloc(NRType type) ); memset(object, 0xf0, c->isize); - object->klass = c; c->cpp_ctor(object); + object->klass = c; nr_class_tree_object_invoke_init (c, object); return object;