changeset 32127:84f72590a319

Fixed some warnings when compiling Gadu-Gadu prpl under Windows.
author tomkiewicz@cpw.pidgin.im
date Sat, 18 Jun 2011 11:44:27 +0000
parents 34404b2719c5
children d82d402c39fb 1d657ec53cdb
files libpurple/protocols/gg/lib/libgadu.h libpurple/protocols/gg/lib/resolver.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/libgadu.h	Sat Jun 18 11:29:11 2011 +0000
+++ b/libpurple/protocols/gg/lib/libgadu.h	Sat Jun 18 11:44:27 2011 +0000
@@ -1442,6 +1442,7 @@
 
 int gg_file_hash_sha1(int fd, uint8_t *result) GG_DEPRECATED;
 
+#undef printf
 #ifdef __GNUC__
 char *gg_saprintf(const char *format, ...) __attribute__ ((format (printf, 1, 2))) GG_DEPRECATED;
 #else
--- a/libpurple/protocols/gg/lib/resolver.c	Sat Jun 18 11:29:11 2011 +0000
+++ b/libpurple/protocols/gg/lib/resolver.c	Sat Jun 18 11:44:27 2011 +0000
@@ -249,6 +249,7 @@
 #endif /* GG_CONFIG_HAVE_GETHOSTBYNAME_R */
 }
 
+#if defined(GG_CONFIG_HAVE_PTHREAD) || !defined(_WIN32)
 /**
  * \internal Rozwiązuje nazwę i zapisuje wynik do podanego desktyptora.
  *
@@ -286,6 +287,7 @@
 
 	return res;
 }
+#endif
 
 /**
  * \internal Odpowiednik \c gethostbyname zapewniający współbieżność.