# HG changeset patch # User Daniel Atallah # Date 1210558912 0 # Node ID ada1640fa26013545aeee4c683c8733c622b95e5 # Parent c6ba0a7028f42ebf34c1f0243ca301f80ea308ed Using named elements in a struct initialization doesn't work in MSVC. diff -r c6ba0a7028f4 -r ada1640fa260 libpurple/protocols/jabber/parser.c --- a/libpurple/protocols/jabber/parser.c Mon May 12 02:18:55 2008 +0000 +++ b/libpurple/protocols/jabber/parser.c Mon May 12 02:21:52 2008 +0000 @@ -133,38 +133,38 @@ } static xmlSAXHandler jabber_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 = jabber_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 = jabber_parser_element_start_libxml, - .endElementNs = jabber_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*/ + jabber_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*/ + jabber_parser_element_start_libxml, /*startElementNs*/ + jabber_parser_element_end_libxml, /*endElementNs*/ + NULL /*serror*/ }; void