diff options
| author | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-29 13:22:39 +0100 |
|---|---|---|
| committer | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-29 13:22:39 +0100 |
| commit | 495d9dca7d549c6ab2b3d6173a42f0bcd21feb29 (patch) | |
| tree | dcc19dcd95c44bea5347391769ddd203d8de4bb4 /src/parser.c | |
| parent | 6962146b747e449e7281b6c6acda0a32fb1ff453 (diff) | |
allow custom layouts + other changes vvv
* remove config.h
* improve modifier mask cleaning
* use keycode instead of sym when dealing with bindings
* put <linux/limits.h> into ifdef __linux__
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/parser.c b/src/parser.c index 2fc4709..6bfaeeb 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,16 +1,20 @@ #define _POSIX_C_SOURCE 200809L #include <ctype.h> -#include <linux/limits.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#ifdef __linux__ -#include <wordexp.h> -#endif + #include <X11/keysym.h> #include <X11/XF86keysym.h> #include <X11/Xlib.h> + +#ifdef __linux__ +#include <wordexp.h> +#include <linux/limits.h> +#endif + #include "parser.h" #include "defs.h" |
