comparison 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
comparison
equal deleted inserted replaced
216:6dffa88a5905 217:55908ee1467f
42 static struct _source { 42 static struct _source {
43 guint id; 43 guint id;
44 PurpleConversation *conv; 44 PurpleConversation *conv;
45 } source; 45 } source;
46 46
47 #ifndef _WIN32
47 extern gchar *sanitize_utf(const gchar *msg, gsize len, gsize *newlen) __attribute__ ((weak)); 48 extern gchar *sanitize_utf(const gchar *msg, gsize len, gsize *newlen) __attribute__ ((weak));
49 #endif
48 50
49 /*************/ 51 /*************/
50 /* functions */ 52 /* functions */
51 /*************/ 53 /*************/
52 54
814 gchar *tmp, *plain; 816 gchar *tmp, *plain;
815 gsize dummy; 817 gsize dummy;
816 818
817 tmp = strip_html_markup(*buffer); 819 tmp = strip_html_markup(*buffer);
818 820
821 #ifndef _WIN32
819 if(sanitize_utf) { 822 if(sanitize_utf) {
820 plain = sanitize_utf(tmp, -1, &dummy); 823 plain = sanitize_utf(tmp, -1, &dummy);
821 g_free(tmp); 824 g_free(tmp);
822 } 825 }
823 else 826 else
827 #endif
824 plain = tmp; 828 plain = tmp;
825 829
826 if(wassr_ac) { 830 if(wassr_ac) {
827 /* store sending message to address parrot problem */ 831 /* store sending message to address parrot problem */
828 g_utf8_strncpy(wassr_post, plain, WASSR_POST_LEN); 832 g_utf8_strncpy(wassr_post, plain, WASSR_POST_LEN);