Krolyxon
Commit 1a691d4

Branches

Refs →

nsxiv1a691d4

fix: broken compilation when using HAVE_LIBFONTS=0 (#194)

compilation currently fails with `make HAVE_LIBFONTS=0` due to
`EXIT_SUCCESS` not being defined. I assume Xft.h includes stdlib.h which
is why compilation works with HAVE_LIBFONTS=1

this switches to using 0 as cg_quit argument in keybindings. if my
interpretation of the C99 standard is correct, then 0 and EXIT_SUCCESS
means the same thing.

> If the value of status is zero or EXIT_SUCCESS, an
> implementation-defined form of the status successful termination is
> returned.
Author
N-R-K
Date
2021-12-30 08:21 +0600
Committer
GitHub · 2021-12-29 22:21 -0400
Parent
1c8ea41
Commit
1a691d42f6893e7bd6d18d541a9a46d87223c9cc

+1 −1

1 file changed

  1. M config.def.h +1 −1
M config.def.h View
@@ -89,7 +89,7 @@ static const KeySym KEYHANDLER_ABORT = XK_Escape;
8989 /* keyboard mappings for image and thumbnail mode: */
9090 static const keymap_t keys[] = {
9191 /* modifiers key function argument */
92− { 0, XK_q, g_quit, EXIT_SUCCESS },
92+ { 0, XK_q, g_quit, 0 },
9393 { 0, XK_Return, g_switch_mode, None },
9494 { 0, XK_f, g_toggle_fullscreen, None },
9595 { 0, XK_b, g_toggle_bar, None },