Fix makefile for save text. Remove redundant ifdef.

svn path=/trunk/netsurf/; revision=4096
This commit is contained in:
Michael Drake 2008-04-13 22:23:04 +00:00
parent 48431f9674
commit a2616bbfe7
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,9 @@ S_IMAGE := $(addprefix image/,$(S_IMAGE))
# S_BROWSER are sources related to full browsers but are common
# between RO and Unix builds
S_BROWSER := browser.c frames.c history_core.c netsurf.c selection.c textinput.c
S_BROWSER := browser.c frames.c history_core.c netsurf.c save_text.c selection.c \
textinput.c
S_BROWSER := $(addprefix desktop/,$(S_BROWSER))
# S_RISCOS are sources purely for the RISC OS build
@ -45,7 +47,7 @@ S_RISCOS := 401login.c artworks.c assert.c awrender.s bitmap.c buffer.c \
$(addprefix configure/,con_cache.c con_connect.c con_content.c con_fonts.c \
con_home.c con_image.c con_inter.c con_language.c con_memory.c con_secure.c \
con_theme.c)
S_RISCOS := $(addprefix riscos/,$(S_RISCOS)) desktop/save_text.c
S_RISCOS := $(addprefix riscos/,$(S_RISCOS))
# S_GTK are sources purely for the GTK build
S_GTK := font_pango.c gtk_bitmap.c gtk_gui.c gtk_schedule.c \

View File

@ -647,12 +647,10 @@ bool ro_gui_save_content(struct content *c, char *path)
case GUI_SAVE_DRAW:
return save_as_draw(c, path);
#endif
#ifdef WITH_TEXT_EXPORT
case GUI_SAVE_TEXT:
save_as_text(c, path);
xosfile_set_type(path, 0xfff);
break;
#endif
#ifdef WITH_SAVE_COMPLETE
case GUI_SAVE_COMPLETE:
assert(c);