summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Xutf8.h5
-rw-r--r--src/gl_draw.cxx2
-rw-r--r--src/xutf8/utf8Wrap.c8
3 files changed, 8 insertions, 7 deletions
diff --git a/src/Xutf8.h b/src/Xutf8.h
index 51fc28291..8fe0ba0cb 100644
--- a/src/Xutf8.h
+++ b/src/Xutf8.h
@@ -25,6 +25,7 @@ extern "C" {
#include <X11/Xlib.h>
#include <X11/Xlocale.h>
#include <X11/Xutil.h>
+#include <FL/Fl_Export.H>
typedef struct {
int nb_font;
@@ -98,8 +99,8 @@ XUtf8UcsWidth(
XUtf8FontStruct *font_set,
unsigned int ucs);
-int
-XGetUtf8FontAndGlyph(
+FL_EXPORT int
+fl_XGetUtf8FontAndGlyph(
XUtf8FontStruct *font_set,
unsigned int ucs,
XFontStruct **fnt,
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index d57d41a30..e936147f2 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -114,7 +114,7 @@ static void get_list(int r) {
for (int i = 0; i < 0x400; i++) {
XFontStruct *font = NULL;
unsigned short id;
- XGetUtf8FontAndGlyph(gl_fontsize->font, ii, &font, &id);
+ fl_XGetUtf8FontAndGlyph(gl_fontsize->font, ii, &font, &id);
if (font) glXUseXFont(font->fid, id, 1, gl_fontsize->listbase+ii);
ii++;
}
diff --git a/src/xutf8/utf8Wrap.c b/src/xutf8/utf8Wrap.c
index c39b196ec..a88e0ea97 100644
--- a/src/xutf8/utf8Wrap.c
+++ b/src/xutf8/utf8Wrap.c
@@ -816,10 +816,10 @@ XUtf8TextWidth(XUtf8FontStruct *font_set,
/** get the X font and glyph ID of a UCS char **/
/*****************************************************************************/
int
-XGetUtf8FontAndGlyph(XUtf8FontStruct *font_set,
- unsigned int ucs,
- XFontStruct **fnt,
- unsigned short *id) {
+fl_XGetUtf8FontAndGlyph(XUtf8FontStruct *font_set,
+ unsigned int ucs,
+ XFontStruct **fnt,
+ unsigned short *id) {
/* int x; */
int *encodings; /* encodings array */