> Here's a fix for the GCC 5 build issue. I added "extern" to
> inline function in jcode.c. The package builds and links with GCC 5 with
> this change.
Alternatively, simply get rid of the inline declaration. All the calls
to isjisp are in different translation units so they never get inlined
anyway.
Patch:
--- a/src/jcode.c
+++ b/src/jcode.c
@@ -275,7 +275,7 @@ gchar *iconv_convert2(const gchar *icode, const gchar
*ocode, const gchar *orig)
return(result);
}
-inline gboolean isjisp(const gchar *buff){
+gboolean isjisp(const gchar *buff){
g_assert(buff != NULL);
if((buff[0] >= 0x21) && (buff[0] <= 0x74) &&
--- a/src/jcode.h
+++ b/src/jcode.h
@@ -31,7 +31,7 @@ enum {
gchar *iconv_convert(const gchar *icode, const gchar *ocode, const gchar
*inbuf);
gchar *iconv_convert2(const gchar *icode, const gchar *ocode, const gchar
*orig);
-inline gboolean isjisp(const gchar *buff);
+gboolean isjisp(const gchar *buff);
gboolean iseuckanji(const guchar *buff);
gboolean iseuchiragana(const guchar *buff);
gboolean iseuckatakana(const guchar *buff);
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]