summaryrefslogtreecommitdiff
path: root/src/Fl_PNG_Image.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_PNG_Image.cxx')
-rw-r--r--src/Fl_PNG_Image.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_PNG_Image.cxx b/src/Fl_PNG_Image.cxx
index ebbcfe60b..99011d088 100644
--- a/src/Fl_PNG_Image.cxx
+++ b/src/Fl_PNG_Image.cxx
@@ -39,6 +39,7 @@
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
+#include <FL/fl_utf8.H>
extern "C"
{
@@ -69,7 +70,7 @@ Fl_PNG_Image::Fl_PNG_Image(const char *png) // I - File to read
// Open the PNG file...
- if ((fp = fopen(png, "rb")) == NULL) return;
+ if ((fp = fl_fopen(png, "rb")) == NULL) return;
// Setup the PNG data structures...
pp = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);