aboutsummaryrefslogtreecommitdiff
path: root/ports/cairo/export-only-in-shared-build.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-07-13 16:06:33 -0700
committerGitHub <noreply@github.com>2017-07-13 16:06:33 -0700
commit948e1c2c447deb76e7d4606f47e09206a8773779 (patch)
tree1c82fdfc7cd3f9477a8865889114a40a3b82f2cd /ports/cairo/export-only-in-shared-build.patch
parent5f96610af9943ca5d6648a655e110ec08776941d (diff)
parent062883535b5900cf5169b8f1494d872403656ae5 (diff)
downloadvcpkg-948e1c2c447deb76e7d4606f47e09206a8773779.tar.gz
vcpkg-948e1c2c447deb76e7d4606f47e09206a8773779.zip
Merge pull request #1455 from codicodi/cairo-1.15.6
[cairo] update to 1.15.6
Diffstat (limited to 'ports/cairo/export-only-in-shared-build.patch')
-rw-r--r--ports/cairo/export-only-in-shared-build.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/cairo/export-only-in-shared-build.patch b/ports/cairo/export-only-in-shared-build.patch
new file mode 100644
index 000000000..d8b46c1ee
--- /dev/null
+++ b/ports/cairo/export-only-in-shared-build.patch
@@ -0,0 +1,15 @@
+diff --git a/src/cairoint.h b/src/cairoint.h
+index 4fedf86..dfa149e 100644
+--- a/src/cairoint.h
++++ b/src/cairoint.h
+@@ -50,7 +50,9 @@
+ #include "config.h"
+ #endif
+
+-#ifdef _MSC_VER
++#if defined _MSC_VER && defined cairo_EXPORTS
+ #define cairo_public __declspec(dllexport)
++#else
++#define cairo_public
+ #endif
+