Mercurial > pidgin-twitter
diff pidgin-twitter.c @ 217:55908ee1467f
workaround for that mingw's ld does not support weak declaration.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 28 Aug 2008 10:24:52 +0900 |
parents | 6b258bdd9c49 |
children | 27651b73a638 |
line wrap: on
line diff
--- 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) {