commit 92f2a46

Michael Forney  ·  2022-05-11 21:09:19 +0000 UTC
parent 32905f1
Define our own MIN/MAX macros instead of sys/param.h
2 files changed,  +3, -2
+0, -1
1@@ -32,7 +32,6 @@
2 #include "util.h"
3 
4 #include <stdlib.h>
5-#include <sys/param.h>
6 #include "swc-server-protocol.h"
7 
8 #define INTERNAL(s) ((struct screen *)(s))
+3, -1
 1@@ -31,7 +31,6 @@
 2 #include <stdbool.h>
 3 #include <string.h>
 4 #include <sys/time.h>
 5-#include <sys/param.h>
 6 #include <pixman.h>
 7 #include <wayland-util.h>
 8 
 9@@ -61,6 +60,9 @@
10 
11 #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array)[0])
12 
13+#define MIN(a, b) ((a) < (b) ? (a) : (b))
14+#define MAX(a, b) ((a) > (b) ? (a) : (b))
15+
16 struct wl_resource;
17 struct wl_client;
18