CWS-TOOLING: integrate CWS sw33bf03

This commit is contained in:
Ivo Hinkelmann 2010-05-21 12:35:59 +02:00
commit e12896d4e2
2 changed files with 29 additions and 0 deletions

View file

@ -64,6 +64,19 @@
#include <comphelper/stlunosequence.hxx>
#include <comphelper/sequenceasvector.hxx>
#include <comphelper/makesequence.hxx>
#include <librdf.h>
#include <libxslt/security.h>
#include <boost/utility.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp>
#include <boost/bind.hpp>
#include <map>
#include <functional>
#include <algorithm>
#include <string.h>
/**
@ -1889,7 +1902,15 @@ librdf_world *librdf_TypeConverter::createWorld() const
m_rRep);
}
//FIXME logger, digest, features?
xsltSecurityPrefsPtr origprefs = xsltGetDefaultSecurityPrefs();
librdf_world_open(pWorld);
xsltSecurityPrefsPtr newprefs = xsltGetDefaultSecurityPrefs();
if (newprefs != origprefs) {
// #i110523# restore libxslt global configuration
// (gratuitously overwritten by raptor_init_parser_grddl_common)
// (this is the only reason unordf is linked against libxslt)
xsltSetDefaultSecurityPrefs(origprefs);
}
return pWorld;
}

View file

@ -41,6 +41,13 @@ ENABLE_EXCEPTIONS=TRUE
CFLAGS+=-DSYSTEM_REDLAND $(REDLAND_CFLAGS)
.ENDIF
.IF "$(SYSTEM_LIBXSLT)" == "YES"
CFLAGS+= $(LIBXSLT_CFLAGS)
.ELSE
LIBXSLTINCDIR=external$/libxslt
CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
.ENDIF
# --- Files --------------------------------------------------------
.IF "$(L10N_framework)"==""
@ -64,6 +71,7 @@ DEF1NAME=$(SHL1TARGET)
SHL1STDLIBS= \
$(REDLANDLIB) \
$(XSLTLIB) \
$(CPPUHELPERLIB) \
$(CPPULIB) \
$(SALLIB) \