From b828b554191c761776e4757d1b92156c624c75f6 Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 17 Feb 2011 14:13:18 +0100 Subject: Immediately respond to events while loading thumbs --- util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 2caf347..f1db6b8 100644 --- a/util.h +++ b/util.h @@ -27,6 +27,9 @@ #define MAX(a,b) ((a) > (b) ? (a) : (b)) #define LEN(a) (sizeof(a) / sizeof(a[0])) +#define TV_TO_DOUBLE(x) ((double) ((x).tv_sec) + 0.000001 * \ + (double) ((x).tv_usec)) + void* s_malloc(size_t); void* s_realloc(void*, size_t); -- cgit v1.2.3-54-g00ecf