summaryrefslogtreecommitdiff
blob: f30105e18c06bd3b4bee54f2e82a24240ea28f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
--- a/src/xutf8/utf8Input.c
+++ b/src/xutf8/utf8Input.c
@@ -18,6 +18,7 @@
 
 #include <config.h>
 #include "../Xutf8.h"
+#include "../../FL/Fl_Export.H"
 #include <X11/X.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -53,7 +54,7 @@ typedef struct {
 #include "lcUniConv/jisx0212.h"
 #include "lcUniConv/ksc5601.h"
 
-static int
+FL_EXPORT static int
 XConvertEucTwToUtf8(char* buffer_return, int len) {
   /* FIXME */
 #if HAVE_LIBC_ICONV
@@ -120,7 +121,7 @@ XConvertEucTwToUtf8(char* buffer_return,
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertEucKrToUtf8(char* buffer_return, int len) {
   int i = 0, l = 0;
   char *buf;
@@ -160,7 +161,7 @@ XConvertEucKrToUtf8(char* buffer_return,
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertBig5ToUtf8(char* buffer_return, int len) {
   int i = 0, l = 0;
   char *buf;
@@ -189,7 +190,7 @@ XConvertBig5ToUtf8(char* buffer_return,
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertCp936extToUtf8(char* buffer_return, int len)
 {
   int i = 0, l = 0;
@@ -226,7 +227,7 @@ XConvertCp936extToUtf8(char* buffer_retu
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertGb2312ToUtf8(char* buffer_return, int len) {
   int i = 0, l = 0;
   char *buf;
@@ -261,7 +262,7 @@ XConvertGb2312ToUtf8(char* buffer_return
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertEucCnToUtf8(char* buffer_return, int len) {
   int i = 0, l = 0;
   char *buf;
@@ -300,7 +301,7 @@ XConvertEucCnToUtf8(char* buffer_return,
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertEucJpToUtf8(char* buffer_return, int len) {
   int i = 0, l = 0;
   char *buf;
@@ -373,7 +374,7 @@ XConvertEucJpToUtf8(char* buffer_return,
   return l;
 }
 
-static int
+FL_EXPORT static int
 XConvertEucToUtf8(const char*	locale,
 		  char*		buffer_return, 
 		  int		len, 
@@ -408,7 +409,7 @@ XConvertEucToUtf8(const char*	locale,
   return len;
 }
 
-int
+FL_EXPORT int
 XUtf8LookupString(XIC                 ic,
 		  XKeyPressedEvent*   event,
 		  char*               buffer_return,
--- a/src/xutf8/utf8Utils.c
+++ b/src/xutf8/utf8Utils.c
@@ -21,6 +21,7 @@
 #if !defined(WIN32) && !defined(__APPLE__)
 
 #include "../Xutf8.h"
+#include "../../FL/Fl_Export.H"
 
 /*** NOTE : all functions are LIMITED to 24 bits Unicode values !!! ***/
 
@@ -29,7 +30,7 @@
  * Returns the byte length of the converted UTF-8 char 
  * Returns -1 if the UTF-8 string is not valid 
  */
-int
+FL_EXPORT int
 XConvertUtf8ToUcs(const unsigned char     *buf,
 		  int                     len,
 		  unsigned int         	  *ucs) {
@@ -137,7 +138,7 @@ XConvertUcsToUtf8(unsigned int 	ucs,
  * returns the byte length of the first UTF-8 char 
  * (returns -1 if not valid) 
  */
-int
+FL_EXPORT int
 XUtf8CharByteLen(const unsigned char     *buf,
 		 int                     len) {
   unsigned int ucs;
@@ -165,7 +166,7 @@ XCountUtf8Char(const unsigned char 	*buf
 /* 
  * Same as XConvertUtf8ToUcs but no sanity check is done.
  */
-int
+FL_EXPORT int
 XFastConvertUtf8ToUcs(const unsigned char     *buf,
 		      int                     len,
 		      unsigned int            *ucs) {
--- a/src/xutf8/utf8Wrap.c
+++ b/src/xutf8/utf8Wrap.c
@@ -20,6 +20,7 @@
 #if !defined(WIN32) && !defined(__APPLE__)
 
 #include "../Xutf8.h"
+#include "../../FL/Fl_Export.H"
 #include <X11/Xlib.h>
 #include <ctype.h>
 #include <stdlib.h>
@@ -705,7 +706,7 @@ XUtf8_measure_extents(
 /*****************************************************************************/
 /** returns the pixel width of a UTF-8 string				    **/
 /*****************************************************************************/
-int
+FL_EXPORT int
 XUtf8TextWidth(XUtf8FontStruct 	*font_set,
 	       const char 	*string,
 	       int 		num_bytes) {
@@ -815,7 +816,7 @@ XUtf8TextWidth(XUtf8FontStruct 	*font_se
 /*****************************************************************************/
 /**  get the X font and glyph ID of a UCS char                              **/
 /*****************************************************************************/
-int
+FL_EXPORT int
 XGetUtf8FontAndGlyph(XUtf8FontStruct  *font_set,
 		     unsigned int     ucs,
 		     XFontStruct      **fnt,
@@ -886,7 +887,7 @@ XGetUtf8FontAndGlyph(XUtf8FontStruct  *f
 /*****************************************************************************/
 /** returns the pixel width of a UCS char				    **/
 /*****************************************************************************/
-int
+FL_EXPORT int
 XUtf8UcsWidth(XUtf8FontStruct  *font_set,
 	      unsigned int     ucs) {