summaryrefslogtreecommitdiffstats
path: root/src/sp-image.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2009-02-26 21:28:12 +0000
committertweenk <tweenk@users.sourceforge.net>2009-02-26 21:28:12 +0000
commitf1b7b6decc60830d3a0072f3287d63ef086c936e (patch)
tree2d237781196c25b0db77771215b02364f791156a /src/sp-image.cpp
parentSpellcheck, snap and filter translation (diff)
downloadinkscape-f1b7b6decc60830d3a0072f3287d63ef086c936e.tar.gz
inkscape-f1b7b6decc60830d3a0072f3287d63ef086c936e.zip
Patch from Lubomir Rintel: fixes for GCC 4.4
(bzr r7380)
Diffstat (limited to 'src/sp-image.cpp')
-rw-r--r--src/sp-image.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index e23dddaf6..49350bd69 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -15,6 +15,9 @@
# include "config.h"
#endif
+// This has to be included prior to anything that includes setjmp.h, it croaks otherwise
+#include <png.h>
+
#include <cstring>
#include <string>
#include <libnr/nr-matrix-fns.h>
@@ -45,7 +48,6 @@
#include "libnr/nr-matrix-fns.h"
#include "io/sys.h"
-#include <png.h>
#if ENABLE_LCMS
#include "color-profile-fns.h"
#include "color-profile.h"