Kaydet (Commit) ad2cc232 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

pct import: Fix build on Windows.

Change-Id: Iddd0299f2229383c0d8368d117e6175887931978
üst 6f6d81c3
......@@ -8,7 +8,10 @@
#
$(eval $(call gb_CppunitTest_CppunitTest,filter_pict_test))
$(eval $(call gb_CppunitTest_use_external,filter_pict_test,boost_headers))
$(eval $(call gb_CppunitTest_use_externals,filter_pict_test,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_add_exception_objects,filter_pict_test, \
filter/qa/cppunit/filters-pict-test \
......
......@@ -23,6 +23,10 @@ $(eval $(call gb_Library_use_external,ipt,boost_headers))
$(eval $(call gb_Library_use_sdk_api,ipt))
$(eval $(call gb_Library_add_defs,ipt,\
-DPCT_DLLIMPLEMENTATION \
))
$(eval $(call gb_Library_use_libraries,ipt,\
vcl \
tl \
......
......@@ -1942,7 +1942,7 @@ GraphicImport( SvStream& rIStm, Graphic & rGraphic, FilterConfigItem* )
namespace pict {
SAL_DLLPUBLIC_EXPORT void ReadPictFile(SvStream &rStreamPict, GDIMetaFile& rGDIMetaFile)
void ReadPictFile(SvStream &rStreamPict, GDIMetaFile& rGDIMetaFile)
{
PictReader aPictReader;
aPictReader.ReadPict(rStreamPict, rGDIMetaFile);
......
......@@ -10,13 +10,22 @@
#ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_IPICT_HXX
#define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_IPICT_HXX
#include <sal/config.h>
#include <sal/types.h>
#if defined PCT_DLLIMPLEMENTATION
#define PCT_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define PCT_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
class GDIMetaFile;
class SvStream;
namespace pict {
/// Function to access PictReader::ReadPict for unit testing.
void ReadPictFile(SvStream &rStreamPict, GDIMetaFile& rGDIMetaFile);
PCT_DLLPUBLIC void ReadPictFile(SvStream &rStreamPict, GDIMetaFile& rGDIMetaFile);
}
......
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