Kaydet (Commit) 9365c975 authored tarafından Michael Stahl's avatar Michael Stahl

sax: move xml2utf.cxx to libsax to prevent duplicate linkage warnings

üst 0cd3740c
......@@ -44,6 +44,7 @@ $(eval $(call gb_Library_add_linked_libs,expwrap,\
cppu \
cppuhelper \
sal \
sax \
$(gb_STDLIBS) \
))
......@@ -53,7 +54,6 @@ $(eval $(call gb_Library_add_exception_objects,expwrap,\
sax/source/expatwrap/attrlistimpl \
sax/source/expatwrap/sax_expat \
sax/source/expatwrap/saxwriter \
sax/source/expatwrap/xml2utf \
))
# vim: set noet sw=4 ts=4:
......@@ -52,18 +52,9 @@ $(eval $(call gb_Library_use_external,fastsax,zlib))
$(eval $(call gb_Library_use_external,fastsax,expat_utf8))
# re-uses xml2utf object from sax.uno lib (see below)
$(eval $(call gb_Library_add_exception_objects,fastsax,\
sax/source/fastparser/facreg \
sax/source/fastparser/fastparser \
sax/source/expatwrap/xml2utf \
))
# mba: currently it's unclear whether xml2utf needs to be compiled with the
# same compiler settings as in the sax.uno lib; in case not, we have to use
# a custom target
#$(eval $(call gb_Library_add_generated_exception_objects,fastsax,\
# sax/source/expatwrap/xml2utf \
#))
# vim: set noet sw=4 ts=4:
......@@ -59,6 +59,7 @@ $(eval $(call gb_Library_add_exception_objects,sax,\
sax/source/tools/fastattribs \
sax/source/tools/fastserializer \
sax/source/tools/fshelper \
sax/source/expatwrap/xml2utf \
))
# vim: set noet sw=4 ts=4:
......@@ -26,6 +26,9 @@
*
************************************************************************/
#include <sax/dllapi.h>
// TODO: Woher?
#define Max( a, b ) (((a)>(b)) ? (a) : (b) )
#define Min( a, b ) (((a)<(b)) ? (a) : (b) )
......@@ -37,7 +40,7 @@
**/
namespace sax_expatwrap {
class Text2UnicodeConverter
class SAX_DLLPUBLIC Text2UnicodeConverter
{
public:
......@@ -63,7 +66,7 @@ private:
* Unicode2TextConverter
*
**-----------------------------------------*/
class Unicode2TextConverter
class SAX_DLLPUBLIC Unicode2TextConverter
{
public:
Unicode2TextConverter( rtl_TextEncoding encoding );
......@@ -94,7 +97,7 @@ private:
* XMLFile2UTFConverter
*
**-----------------------------------------*/
class XMLFile2UTFConverter
class SAX_DLLPUBLIC XMLFile2UTFConverter
{
public:
XMLFile2UTFConverter( ):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment