diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-10-06 11:17:12 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-10-06 11:17:35 +0200 |
commit | f2e6220fef6dc01b2538281916c2b8a5e3f1a784 (patch) | |
tree | 6509eaf451e151a316b2b616ae12c8069f6ce300 /libcdr | |
parent | d1439727881527c403a6bb8ceac6240ef99f2ed2 (diff) |
Fixing some obscurous linking errors on windows
Change-Id: I519d02da58ce5a2915f1e18b5a295f7c093e0f2e
Diffstat (limited to 'libcdr')
-rw-r--r--[-rwxr-xr-x] | libcdr/libcdr-msvc.patch | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/libcdr/libcdr-msvc.patch b/libcdr/libcdr-msvc.patch index cf18fb9e1a66..290da20437a7 100755..100644 --- a/libcdr/libcdr-msvc.patch +++ b/libcdr/libcdr-msvc.patch @@ -1,3 +1,87 @@ +--- cdr/src/lib/CDRCollector.h ++++ cdr/src/lib/CDRCollector.h +@@ -103,7 +103,7 @@ public: + virtual void collectOutlId(unsigned id) = 0; + virtual void collectFild(unsigned id, unsigned short fillType, const CDRColor &color1, const CDRColor &color2, const CDRGradient &gradient, const CDRImageFill &imageFill) = 0; + virtual void collectOutl(unsigned id, unsigned short lineType, unsigned short capsType, unsigned short joinType, double lineWidth, +- double stretch, double angle, const CDRColor &color, const std::vector<unsigned short> &dashArray, ++ double stretch, double angle, const CDRColor &color, const std::vector<unsigned> &dashArray, + unsigned startMarkerId, unsigned endMarkerId) = 0; + virtual void collectRotate(double angle, double cx, double cy) = 0; + virtual void collectFlags(unsigned flags, bool considerFlags) = 0; +--- cdr/src/lib/CDRContentCollector.h ++++ cdr/src/lib/CDRContentCollector.h +@@ -67,7 +67,7 @@ public: + void collectOutlId(unsigned id); + void collectFild(unsigned, unsigned short, const CDRColor &, const CDRColor &, const CDRGradient &, const CDRImageFill &) {} + void collectOutl(unsigned, unsigned short, unsigned short, unsigned short, double, double, double, const CDRColor &, +- const std::vector<unsigned short> &, unsigned, unsigned) {} ++ const std::vector<unsigned> &, unsigned, unsigned) {} + void collectRotate(double angle, double cx, double cy); + void collectFlags(unsigned flags, bool considerFlags); + void collectPageSize(double, double, double, double) {} +--- cdr/src/lib/CDRParser.cpp ++++ cdr/src/lib/CDRParser.cpp +@@ -1376,7 +1376,7 @@ void libcdr::CDRParser::readWaldoOutl(WPXInputStream *input) + input->seek(7, WPX_SEEK_CUR); + unsigned short numDash = readU8(input); + int fixPosition = input->tell(); +- std::vector<unsigned short> dashArray; ++ std::vector<unsigned> dashArray; + for (unsigned short i = 0; i < numDash; ++i) + dashArray.push_back(readU8(input)); + input->seek(fixPosition + 10, WPX_SEEK_SET); +@@ -1870,7 +1870,7 @@ void libcdr::CDRParser::readOutl(WPXInputStream *input, unsigned length) + input->seek(16, WPX_SEEK_CUR); + unsigned short numDash = readU16(input); + int fixPosition = input->tell(); +- std::vector<unsigned short> dashArray; ++ std::vector<unsigned> dashArray; + for (unsigned short i = 0; i < numDash; ++i) + dashArray.push_back(readU16(input)); + if (m_version < 600) +--- cdr/src/lib/CDRStylesCollector.cpp ++++ cdr/src/lib/CDRStylesCollector.cpp +@@ -56,7 +56,7 @@ void libcdr::CDRStylesCollector::collectFild(unsigned id, unsigned short fillTyp + } + + void libcdr::CDRStylesCollector::collectOutl(unsigned id, unsigned short lineType, unsigned short capsType, unsigned short joinType, double lineWidth, +- double stretch, double angle, const CDRColor &color, const std::vector<unsigned short> &dashArray, ++ double stretch, double angle, const CDRColor &color, const std::vector<unsigned> &dashArray, + unsigned startMarkerId, unsigned endMarkerId) + { + m_ps.m_lineStyles[id] = CDRLineStyle(lineType, capsType, joinType, lineWidth, stretch, angle, color, dashArray, startMarkerId, endMarkerId); +--- cdr/src/lib/CDRStylesCollector.h ++++ cdr/src/lib/CDRStylesCollector.h +@@ -68,7 +68,7 @@ public: + void collectOutlId(unsigned) {} + void collectFild(unsigned id, unsigned short fillType, const CDRColor &color1, const CDRColor &color2, const CDRGradient &gradient, const CDRImageFill &imageFill); + void collectOutl(unsigned id, unsigned short lineType, unsigned short capsType, unsigned short joinType, double lineWidth, +- double stretch, double angle, const CDRColor &color, const std::vector<unsigned short> &dashArray, ++ double stretch, double angle, const CDRColor &color, const std::vector<unsigned> &dashArray, + unsigned startMarkerId, unsigned endMarkerId); + void collectRotate(double,double,double) {} + void collectFlags(unsigned, bool) {} +--- cdr/src/lib/CDRTypes.h ++++ cdr/src/lib/CDRTypes.h +@@ -136,7 +136,7 @@ struct CDRLineStyle + double stretch; + double angle; + CDRColor color; +- std::vector<unsigned short> dashArray; ++ std::vector<unsigned> dashArray; + unsigned startMarkerId; + unsigned endMarkerId; + CDRLineStyle() +@@ -144,7 +144,7 @@ struct CDRLineStyle + stretch(0.0), angle(0.0), color(), dashArray(), + startMarkerId(0), endMarkerId(0) {} + CDRLineStyle(unsigned short lt, unsigned short ct, unsigned short jt, +- double lw, double st, double a, const CDRColor &c, const std::vector<unsigned short> &da, ++ double lw, double st, double a, const CDRColor &c, const std::vector<unsigned> &da, + unsigned smi, unsigned emi) + : lineType(lt), capsType(ct), joinType(jt), lineWidth(lw), + stretch(st), angle(a), color(c), dashArray(da), --- cdr/build/win32/cdr2raw.vcproj 2012-10-06 06:45:36.436443100 +0200 +++ cdr/build/win32/cdr2raw.vcproj 2012-10-06 06:46:42.153510700 +0200 @@ -69,7 +69,7 @@ |