diff options
Diffstat (limited to 'src/Fl_XPM_Image.cxx')
| -rw-r--r-- | src/Fl_XPM_Image.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_XPM_Image.cxx b/src/Fl_XPM_Image.cxx index 31228a32d..09d5c0fbc 100644 --- a/src/Fl_XPM_Image.cxx +++ b/src/Fl_XPM_Image.cxx @@ -36,6 +36,7 @@ #include <FL/Fl_XPM_Image.H> #include <stdio.h> #include <stdlib.h> +#include <FL/fl_utf8.H> #include "flstring.h" @@ -56,7 +57,7 @@ static int hexdigit(int x) { // I - Hex digit... Fl_XPM_Image::Fl_XPM_Image(const char *name) : Fl_Pixmap((char *const*)0) { FILE *f; - if ((f = fopen(name, "rb")) == NULL) return; + if ((f = fl_fopen(name, "rb")) == NULL) return; // read all the c-strings out of the file: char** new_data = new char *[INITIALLINES]; |
