summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-16 20:58:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-16 20:58:09 +0000
commit328fed8122e90b58fe9eb85527f8d62f5df262fd (patch)
tree4463529202d63e0e21e6a0d4f89b2a1191bcffb9
parentc4de2cf6b39310be7bb0c50b86704e0ae0828532 (diff)
downloadnetsurf-328fed8122e90b58fe9eb85527f8d62f5df262fd.tar.gz
netsurf-328fed8122e90b58fe9eb85527f8d62f5df262fd.tar.bz2
Liberally sprinkle #ifdef around
svn path=/trunk/netsurf/; revision=10417
-rw-r--r--desktop/print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/print.c b/desktop/print.c
index a5b5c125a..0099a8c69 100644
--- a/desktop/print.c
+++ b/desktop/print.c
@@ -162,8 +162,7 @@ bool print_draw_next_page(const struct printer *printer,
hlcache_handle *print_init(hlcache_handle *content,
struct print_settings *settings)
{
-// newcache
-#if 0
+#ifdef FIX_CORE_PRINTING
hlcache_handle* printed_content;
hlcache_handle_user *user_sentinel;
@@ -244,6 +243,7 @@ bool print_apply_settings(hlcache_handle *content,
bool print_cleanup(hlcache_handle *content, const struct printer *printer,
struct print_settings *settings)
{
+#ifdef FIX_CORE_PRINTING
printer->print_end();
html_redraw_printing = false;
@@ -257,6 +257,7 @@ bool print_cleanup(hlcache_handle *content, const struct printer *printer,
free((void *)settings->output);
free(settings);
+#endif
return true;
}