build: fix compilation for --enable-tiny --enable-wrapping

master
Benno Schulenberg 2019-12-22 12:56:18 +01:00
parent 410280b089
commit 4314feae11
2 changed files with 3 additions and 3 deletions

View File

@ -531,7 +531,7 @@ bool do_wrap(void);
#if defined(ENABLE_HELP) || defined(ENABLED_WRAPORJUSTIFY)
ssize_t break_line(const char *line, ssize_t goal, bool snap_at_nl);
#endif
#if !defined(NANO_TINY) || defined(ENABLE_JUSTIFY)
#if !defined(NANO_TINY) || defined(ENABLED_WRAPORJUSTIFY)
size_t indent_length(const char *line);
#endif
#ifdef ENABLE_JUSTIFY

View File

@ -1622,7 +1622,7 @@ ssize_t break_line(const char *line, ssize_t goal, bool snap_at_nl)
}
#endif /* ENABLE_HELP || ENABLED_WRAPORJUSTIFY */
#if !defined(NANO_TINY) || defined(ENABLE_JUSTIFY)
#if !defined(NANO_TINY) || defined(ENABLED_WRAPORJUSTIFY)
/* Return the length of the indentation part of the given line. The
* "indentation" of a line is the leading consecutive whitespace. */
size_t indent_length(const char *line)
@ -1643,7 +1643,7 @@ size_t indent_length(const char *line)
return len;
}
#endif /* !NANO_TINY || ENABLE_JUSTIFY */
#endif
#ifdef ENABLE_JUSTIFY
/* Copy a character from one place to another. */