aboutsummaryrefslogtreecommitdiff
path: root/ports/cairo/export-only-in-shared-build.patch
blob: d8b46c1ee1a9cd4138d7c4556273239224e6f5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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