From 79c7e6178e9b577158408157ec23a477556ecf16 Mon Sep 17 00:00:00 2001 From: Bert Date: Tue, 18 Jan 2011 20:11:28 +0100 Subject: Render image on window --- sxiv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sxiv.h') diff --git a/sxiv.h b/sxiv.h index 1ebcf57..97252af 100644 --- a/sxiv.h +++ b/sxiv.h @@ -23,6 +23,9 @@ #define VERSION "git-20110117" +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#define MAX(a,b) ((a) > (b) ? (a) : (b)) + #define WARN(...) \ do { \ fprintf(stderr, "sxiv: %s:%d: warning: ", __FILE__, __LINE__); \ @@ -30,7 +33,7 @@ fprintf(stderr, "\n"); \ } while (0) -#define DIE(...) \ +#define DIE(...) \ do { \ fprintf(stderr, "sxiv: %s:%d: error: ", __FILE__, __LINE__); \ fprintf(stderr, __VA_ARGS__); \ -- cgit v1.2.3