From 4f6bd04f23fc1524a41b5a788411916a0240aa37 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 12 Nov 2015 23:15:45 +0100 Subject: [PATCH] Move MIN and MAX Signed-off-by: Sebastian Ramacher --- zathura/macros.h | 8 ++++++++ zathura/shortcuts.c | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/zathura/macros.h b/zathura/macros.h index 86ced61..a1957dc 100644 --- a/zathura/macros.h +++ b/zathura/macros.h @@ -8,4 +8,12 @@ #define UNUSED(x) GIRARA_UNUSED(x) #define DEPRECATED(x) GIRARA_DEPRECATED(x) +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a,b) (((a)>(b))?(a):(b)) +#endif + #endif diff --git a/zathura/shortcuts.c b/zathura/shortcuts.c index 728b9c2..ae3820e 100644 --- a/zathura/shortcuts.c +++ b/zathura/shortcuts.c @@ -20,14 +20,6 @@ #include "adjustment.h" #include -#ifndef MIN -#define MIN(a,b) (((a)<(b))?(a):(b)) -#endif - -#ifndef MAX -#define MAX(a,b) (((a)>(b))?(a):(b)) -#endif - /* Helper function; see sc_display_link and sc_follow. */ static bool draw_links(zathura_t* zathura)