summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-09-29 21:12:45 +0300
committerTor Lillqvist <tml@iki.fi>2011-09-29 21:39:40 +0300
commit5e4a7452c8f96192a420704b12090e871d8b25dd (patch)
tree2c702ea9de889a95ed3b2cd57535a358a7219167 /sw
parent8b3d84c04e359fb5c4117f74cfcc03b1e33b4d86 (diff)
Allow for lack of LIBXML_ATTR_FORMAT
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodedump.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index f5b85dcc9a28..52f61cea98df 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -47,7 +47,11 @@ public:
xmlTextWriterPtr operator->();
void startElement( const char* element );
void endElement();
- void writeFormatAttribute( const char* attribute, const char* format, ... ) LIBXML_ATTR_FORMAT(3,4);
+ void writeFormatAttribute( const char* attribute, const char* format, ... )
+#ifdef LIBXML_ATTR_FORMAT
+ LIBXML_ATTR_FORMAT(3,4)
+#endif
+ ;
private:
xmlTextWriterPtr writer;
bool owns;