summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-02 19:07:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-05 12:39:58 +0000
commitcf171c203d0cb46db946bdcd81cd84f027a7e917 (patch)
treee2abb5ec3194aea13b4e8686be6b31ffd27b6ac1 /external
parent10a202cbc1abee7963c58180e7791b480da817a2 (diff)
workaround error C2589: ´(´ : illegal token on right side of ´::´
Change-Id: I3654a4eb4caa3a987f6d797c9bcb577c6fd6b426 (cherry picked from commit 1fc30a25e2c69fe8b365300b0784f3a282183e80)
Diffstat (limited to 'external')
-rw-r--r--external/libvisio/UnpackedTarball_libvisio.mk4
-rw-r--r--external/libvisio/vsd-msvc-max.patch.119
2 files changed, 23 insertions, 0 deletions
diff --git a/external/libvisio/UnpackedTarball_libvisio.mk b/external/libvisio/UnpackedTarball_libvisio.mk
index e4c0561f72f8..31908332a43f 100644
--- a/external/libvisio/UnpackedTarball_libvisio.mk
+++ b/external/libvisio/UnpackedTarball_libvisio.mk
@@ -11,4 +11,8 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libvisio))
$(eval $(call gb_UnpackedTarball_set_tarball,libvisio,$(VISIO_TARBALL)))
+$(eval $(call gb_UnpackedTarball_add_patches,libvisio,\
+ external/libvisio/vsd-msvc-max.patch.1 \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/external/libvisio/vsd-msvc-max.patch.1 b/external/libvisio/vsd-msvc-max.patch.1
new file mode 100644
index 000000000000..7d22ea1999ad
--- /dev/null
+++ b/external/libvisio/vsd-msvc-max.patch.1
@@ -0,0 +1,19 @@
+--- a/src/lib/VSDContentCollector.cpp
++++ b/src/lib/VSDContentCollector.cpp
+@@ -2256,14 +2256,14 @@
+ styleProps.insert("draw:marker-start-viewbox", _linePropertiesMarkerViewbox(style.startMarker));
+ styleProps.insert("draw:marker-start-path", _linePropertiesMarkerPath(style.startMarker));
+ double w = m_scale*_linePropertiesMarkerScale(style.startMarker)*(0.1/(style.width*style.width+1)+2.54*style.width);
+- styleProps.insert("draw:marker-start-width", std::max(w, 0.05));
++ styleProps.insert("draw:marker-start-width", (std::max)(w, 0.05));
+ }
+ if (style.endMarker > 0)
+ {
+ styleProps.insert("draw:marker-end-viewbox", _linePropertiesMarkerViewbox(style.endMarker));
+ styleProps.insert("draw:marker-end-path", _linePropertiesMarkerPath(style.endMarker));
+ double w = m_scale*_linePropertiesMarkerScale(style.endMarker)*(0.1/(style.width*style.width+1)+2.54*style.width);
+- styleProps.insert("draw:marker-end-width", std::max(w, 0.05));
++ styleProps.insert("draw:marker-end-width", (std::max)(w, 0.05));
+ }
+
+ int dots1 = 0;