From 4ec3e7a61956a1b5ec81ac29fdadc4402226ad3b Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Fri, 17 Sep 2010 01:16:53 +0200 Subject: [PATCH] Define Macros MAX and MIN --- i3bar/include/util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/i3bar/include/util.h b/i3bar/include/util.h index 0f5dd3e3..7e638152 100644 --- a/i3bar/include/util.h +++ b/i3bar/include/util.h @@ -11,6 +11,10 @@ #include "queue.h" +/* Get the maximum/minimum of x and y */ +#define MAX(x,y) ((x) > (y) ? (x) : (y)) +#define MIN(x,y) ((x) < (y) ? (x) : (y)) + /* Securely free p */ #define FREE(p) do { \ if (p != NULL) { \ -- 2.39.5