neuswc

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

commit 92f2a46d888f98850511d9386845d92a8d9802a1
parent 32905f16caa7b76e705e7afdb7a6cc5bc8b2fd9a
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 11 May 2022 14:09:19 -0700

Define our own MIN/MAX macros instead of sys/param.h

Diffstat:
Mlibswc/screen.c | 1-
Mlibswc/util.h | 4+++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libswc/screen.c b/libswc/screen.c @@ -32,7 +32,6 @@ #include "util.h" #include <stdlib.h> -#include <sys/param.h> #include "swc-server-protocol.h" #define INTERNAL(s) ((struct screen *)(s)) diff --git a/libswc/util.h b/libswc/util.h @@ -31,7 +31,6 @@ #include <stdbool.h> #include <string.h> #include <sys/time.h> -#include <sys/param.h> #include <pixman.h> #include <wayland-util.h> @@ -61,6 +60,9 @@ #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array)[0]) +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + struct wl_resource; struct wl_client;