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)