neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit a7b615567f83d9e48d585251015048c441ca0239
parent 92f2a46d888f98850511d9386845d92a8d9802a1
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 11 May 2022 14:21:42 -0700

Rename close to avoid conflict with unistd.h function

Diffstat:
Mlibswc/shell_surface.c | 4++--
Mlibswc/xdg_shell.c | 4++--
Mlibswc/xwm.c | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libswc/shell_surface.c b/libswc/shell_surface.c @@ -55,7 +55,7 @@ configure(struct window *window, uint32_t width, uint32_t height) } static void -close(struct window *window) +close_(struct window *window) { struct shell_surface *shell_surface = wl_container_of(window, shell_surface, window); struct wl_client *client; @@ -68,7 +68,7 @@ close(struct window *window) static const struct window_impl window_impl = { .configure = configure, - .close = close, + .close = close_, }; static void diff --git a/libswc/xdg_shell.c b/libswc/xdg_shell.c @@ -301,7 +301,7 @@ unfocus(struct window *window) } static void -close(struct window *window) +close_(struct window *window) { struct xdg_toplevel *toplevel = wl_container_of(window, toplevel, window); @@ -338,7 +338,7 @@ static const struct window_impl toplevel_window_impl = { .configure = configure, .focus = focus, .unfocus = unfocus, - .close = close, + .close = close_, .set_mode = set_mode, }; diff --git a/libswc/xwm.c b/libswc/xwm.c @@ -196,7 +196,7 @@ unfocus(struct window *window) } static void -close(struct window *window) +close_(struct window *window) { struct xwl_window *xwl_window = wl_container_of(window, xwl_window, window); @@ -225,7 +225,7 @@ static const struct window_impl xwl_window_handler = { .configure = configure, .focus = focus, .unfocus = unfocus, - .close = close, + .close = close_, }; static void