summaryrefslogtreecommitdiffstats
path: root/src/extension/init.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-01-18 20:58:23 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-01-18 20:58:23 +0000
commit2de4d78077354eaee0b19956e0b5d2a6e3663719 (patch)
treebfa8e04564396e0e3c384696ed90ccd5dbdd03e5 /src/extension/init.cpp
parentRemove crashes when using attributes XML dialog with Objects dialog open (II) (diff)
downloadinkscape-2de4d78077354eaee0b19956e0b5d2a6e3663719.tar.gz
inkscape-2de4d78077354eaee0b19956e0b5d2a6e3663719.zip
fix compilation with HAVE_CAIRO_PDF=0
Diffstat (limited to 'src/extension/init.cpp')
-rw-r--r--src/extension/init.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/extension/init.cpp b/src/extension/init.cpp
index 49ac2e802..6626ff20d 100644
--- a/src/extension/init.cpp
+++ b/src/extension/init.cpp
@@ -36,8 +36,12 @@
# include "internal/emf-print.h"
# include "internal/wmf-inout.h"
# include "internal/wmf-print.h"
-#ifdef HAVE_CAIRO_PDF
+
+#include <cairo.h>
+#ifdef CAIRO_HAS_PDF_SURFACE
# include "internal/cairo-renderer-pdf-out.h"
+#endif
+#ifdef CAIRO_HAS_PS_SURFACE
# include "internal/cairo-ps-out.h"
#endif
#include "internal/pov-out.h"
@@ -151,10 +155,10 @@ init()
Internal::Svg::init();
Internal::Svgz::init();
-#ifdef HAVE_CAIRO_PDF
- //g_print ("Using CairoRendererPdfOutput: new pdf exporter\n");
+#ifdef CAIRO_HAS_PDF_SURFACE
Internal::CairoRendererPdfOutput::init();
-
+#endif
+#ifdef CAIRO_HAS_PS_SURFACE
Internal::CairoPsOutput::init();
Internal::CairoEpsOutput::init();
#endif