aboutsummaryrefslogtreecommitdiff
path: root/png-wbg.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-01 20:03:23 +0200
committerDaniel Eklöf <daniel@ekloef.se>2020-10-01 20:03:23 +0200
commit1af2db7928029eb1ec7db3ee5b865815b22057de (patch)
treee0c3200114daa733eca16901a12a305d633d7250 /png-wbg.h
parentd8f96450bc8bb70012b1db9f8bd44690e36ef048 (diff)
downloadwbg-1af2db7928029eb1ec7db3ee5b865815b22057de.tar.gz
main: open file once, in main, and log an error when we fail
Diffstat (limited to 'png-wbg.h')
-rw-r--r--png-wbg.h3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <pixman.h>
-pixman_image_t *png_load(const char *path);
+pixman_image_t *png_load(FILE *fp, const char *path);