commit 4314feae11d479f1ef02e288526aa800df8eea59
parent 410280b0891b7ceaed3e2264cf09e40be458d240
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 22 Dec 2019 12:56:18 +0100
build: fix compilation for --enable-tiny --enable-wrapping
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/proto.h b/src/proto.h
@@ -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
diff --git a/src/text.c b/src/text.c
@@ -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. */