commit 1695463347ea089e5647433e8970db27f032ed9b
parent f46544f67b93e68a00d939476605de144e23842f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 6 Jul 2017 21:47:11 +0200
tweaks: correct two conditions for conditional compilation
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nano.h b/src/nano.h
@@ -164,7 +164,7 @@ typedef enum {
#ifndef DISABLE_WRAPPING
SPLIT_BEGIN, SPLIT_END,
#endif
-#ifndef DISABLE_COMMENT
+#ifdef ENABLE_COMMENT
COMMENT, UNCOMMENT, PREFLIGHT,
#endif
JOIN, PASTE, INSERT, ENTER, OTHER
diff --git a/src/proto.h b/src/proto.h
@@ -540,7 +540,7 @@ RETSIGTYPE cancel_command(int signal);
bool execute_command(const char *command);
void discard_until(const undo *thisitem, openfilestruct *thefile);
void add_undo(undo_type action);
-#ifndef DISABLE_COMMENT
+#ifdef ENABLE_COMMENT
void update_comment_undo(ssize_t lineno);
#endif
void update_undo(undo_type action);