diff options
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 6 |
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; |