# HG changeset patch # User Yoshiki Yazawa # Date 1219886692 -32400 # Node ID 55908ee1467f945f4a1856b80778a274795cdb21 # Parent 6dffa88a5905eff56656c42fdc5496885b11d21c workaround for that mingw's ld does not support weak declaration. diff -r 6dffa88a5905 -r 55908ee1467f pidgin-twitter.c --- a/pidgin-twitter.c Wed Aug 27 14:05:26 2008 +0900 +++ b/pidgin-twitter.c Thu Aug 28 10:24:52 2008 +0900 @@ -44,7 +44,9 @@ PurpleConversation *conv; } source; +#ifndef _WIN32 extern gchar *sanitize_utf(const gchar *msg, gsize len, gsize *newlen) __attribute__ ((weak)); +#endif /*************/ /* functions */ @@ -816,11 +818,13 @@ tmp = strip_html_markup(*buffer); +#ifndef _WIN32 if(sanitize_utf) { plain = sanitize_utf(tmp, -1, &dummy); g_free(tmp); } else +#endif plain = tmp; if(wassr_ac) {