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 --- png-wbg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'png-wbg.h') diff --git a/png-wbg.h b/png-wbg.h index bf15f9d..71e7dac 100644 --- a/png-wbg.h +++ b/png-wbg.h @@ -1,5 +1,6 @@ #pragma once +#include #include -pixman_image_t *png_load(const char *path); +pixman_image_t *png_load(FILE *fp, const char *path); -- cgit v1.2.3