Skip to content

Commit be6a1ea

Browse files
committed
do not export symbols in static unix builds
(Patch submitted to mainstream at sammycage#28)
1 parent 31f7d26 commit be6a1ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/plutosvg.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525

2626
#include <plutovg.h>
2727

28-
#if !defined(PLUTOSVG_BUILD_STATIC) && (defined(_WIN32) || defined(__CYGWIN__))
28+
#if defined(PLUTOSVG_BUILD_STATIC)
29+
#define PLUTOSVG_EXPORT
30+
#define PLUTOSVG_IMPORT
31+
#elif (defined(_WIN32) || defined(__CYGWIN__))
2932
#define PLUTOSVG_EXPORT __declspec(dllexport)
3033
#define PLUTOSVG_IMPORT __declspec(dllimport)
3134
#elif defined(__GNUC__) && (__GNUC__ >= 4)

0 commit comments

Comments
 (0)