# HG changeset patch # User Daniel Atallah # Date 1210558084 0 # Node ID 1c87e81c44fa94a9bdef6033afe820dc79604d92 # Parent 67148f43fd2f7d1dd9d70d97f53587cee9b06140 Bonjour build fixes for MSVC. diff -r 67148f43fd2f -r 1c87e81c44fa libpurple/protocols/bonjour/bonjour.c --- a/libpurple/protocols/bonjour/bonjour.c Mon May 12 02:03:13 2008 +0000 +++ b/libpurple/protocols/bonjour/bonjour.c Mon May 12 02:08:04 2008 +0000 @@ -24,6 +24,7 @@ #include #else #define UNICODE +#include #include #include #include "dns_sd_proxy.h" diff -r 67148f43fd2f -r 1c87e81c44fa libpurple/protocols/bonjour/dns_sd_proxy.h --- a/libpurple/protocols/bonjour/dns_sd_proxy.h Mon May 12 02:03:13 2008 +0000 +++ b/libpurple/protocols/bonjour/dns_sd_proxy.h Mon May 12 02:08:04 2008 +0000 @@ -21,10 +21,13 @@ #ifndef _DNS_SD_PROXY #define _DNS_SD_PROXY + +#ifndef _MSC_VER #include +#endif /* fixup to make pidgin compile against win32 bonjour */ -#ifdef _WIN32 +#if defined(_WIN32) && !defined(_MSC_VER) #define _MSL_STDINT_H #endif diff -r 67148f43fd2f -r 1c87e81c44fa libpurple/protocols/bonjour/jabber.c --- a/libpurple/protocols/bonjour/jabber.c Mon May 12 02:03:13 2008 +0000 +++ b/libpurple/protocols/bonjour/jabber.c Mon May 12 02:08:04 2008 +0000 @@ -39,7 +39,9 @@ #endif #include +#ifdef HAVE_UNISTD_H #include +#endif #include #include "network.h" diff -r 67148f43fd2f -r 1c87e81c44fa libpurple/protocols/bonjour/parser.c --- a/libpurple/protocols/bonjour/parser.c Mon May 12 02:03:13 2008 +0000 +++ b/libpurple/protocols/bonjour/parser.c Mon May 12 02:08:04 2008 +0000 @@ -157,38 +157,38 @@ } static xmlSAXHandler bonjour_parser_libxml = { - .internalSubset = NULL, - .isStandalone = NULL, - .hasInternalSubset = NULL, - .hasExternalSubset = NULL, - .resolveEntity = NULL, - .getEntity = NULL, - .entityDecl = NULL, - .notationDecl = NULL, - .attributeDecl = NULL, - .elementDecl = NULL, - .unparsedEntityDecl = NULL, - .setDocumentLocator = NULL, - .startDocument = NULL, - .endDocument = NULL, - .startElement = NULL, - .endElement = NULL, - .reference = NULL, - .characters = bonjour_parser_element_text_libxml, - .ignorableWhitespace = NULL, - .processingInstruction = NULL, - .comment = NULL, - .warning = NULL, - .error = NULL, - .fatalError = NULL, - .getParameterEntity = NULL, - .cdataBlock = NULL, - .externalSubset = NULL, - .initialized = XML_SAX2_MAGIC, - ._private = NULL, - .startElementNs = bonjour_parser_element_start_libxml, - .endElementNs = bonjour_parser_element_end_libxml, - .serror = NULL + NULL, /*internalSubset*/ + NULL, /*isStandalone*/ + NULL, /*hasInternalSubset*/ + NULL, /*hasExternalSubset*/ + NULL, /*resolveEntity*/ + NULL, /*getEntity*/ + NULL, /*entityDecl*/ + NULL, /*notationDecl*/ + NULL, /*attributeDecl*/ + NULL, /*elementDecl*/ + NULL, /*unparsedEntityDecl*/ + NULL, /*setDocumentLocator*/ + NULL, /*startDocument*/ + NULL, /*endDocument*/ + NULL, /*startElement*/ + NULL, /*endElement*/ + NULL, /*reference*/ + bonjour_parser_element_text_libxml, /*characters*/ + NULL, /*ignorableWhitespace*/ + NULL, /*processingInstruction*/ + NULL, /*comment*/ + NULL, /*warning*/ + NULL, /*error*/ + NULL, /*fatalError*/ + NULL, /*getParameterEntity*/ + NULL, /*cdataBlock*/ + NULL, /*externalSubset*/ + XML_SAX2_MAGIC, /*initialized*/ + NULL, /*_private*/ + bonjour_parser_element_start_libxml, /*startElementNs*/ + bonjour_parser_element_end_libxml, /*endElementNs*/ + NULL /*serror*/ }; void