vcpkg/ports/cairo/export-only-in-shared-build.patch
2017-07-13 17:24:04 +02:00

16 lines
313 B
Diff

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