From 1af2db7928029eb1ec7db3ee5b865815b22057de Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 1 Oct 2020 20:03:23 +0200 Subject: main: open file once, in main, and log an error when we fail --- jpg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jpg.h') diff --git a/jpg.h b/jpg.h index e61b8b2..90e4803 100644 --- a/jpg.h +++ b/jpg.h @@ -1,5 +1,6 @@ #pragma once +#include #include -pixman_image_t *jpg_load(const char *path); +pixman_image_t *jpg_load(FILE *fp, const char *path); -- cgit v1.2.3