aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-04-07 10:17:27 +0200
committerBert <ber.t@gmx.com>2011-04-07 10:17:27 +0200
commitb2f1b997ed60a40ffb9c0964ed0716c375b30072 (patch)
tree97662fe743124daf58142b02b8900111dd973352 /main.c
parent9fcf2c8f3467f163031b56c1750e2a27df0d3d64 (diff)
downloadnsxiv-b2f1b997ed60a40ffb9c0964ed0716c375b30072.tar.zst
Disable support for external commands by default
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 7d9a8a5..45f3666 100644
--- a/main.c
+++ b/main.c
@@ -37,7 +37,7 @@
#include "util.h"
#include "window.h"
-#ifdef EXT_COMMANDS
+#if EXT_COMMANDS
#include "commands.h"
#endif
@@ -284,7 +284,7 @@ void read_dir_rec(const char *dirname) {
free(dirnames);
}
-#ifdef EXT_COMMANDS
+#if EXT_COMMANDS
int run_command(const char *cline, Bool reload) {
int fncnt, fnlen;
char *cn, *cmdline;
@@ -382,7 +382,7 @@ void on_keypress(XKeyEvent *kev) {
XLookupString(kev, &key, 1, &ksym, NULL);
changed = 0;
-#ifdef EXT_COMMANDS
+#if EXT_COMMANDS
/* external commands from commands.h */
if (CLEANMASK(kev->state) & ControlMask) {
for (i = 0; i < LEN(commands); ++i) {