aboutsummaryrefslogtreecommitdiff
path: root/builds/unix/ftconfig.in
diff options
context:
space:
mode:
Diffstat (limited to 'builds/unix/ftconfig.in')
-rw-r--r--builds/unix/ftconfig.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/builds/unix/ftconfig.in b/builds/unix/ftconfig.in
index 5159693e7..ca9058834 100644
--- a/builds/unix/ftconfig.in
+++ b/builds/unix/ftconfig.in
@@ -493,6 +493,17 @@ FT_BEGIN_HEADER
#define FT_EXPORT( x ) extern x
#endif
+#ifdef _WIN32
+#if defined( FT2_BUILD_LIBRARY ) && \
+ ( defined( _DLL ) || defined( DLL_EXPORT ) )
+#undef FT_EXPORT
+#define FT_EXPORT( x ) __declspec( dllexport ) x
+#elif defined( FT2_DLLIMPORT )
+#undef FT_EXPORT
+#define FT_EXPORT( x ) __declspec( dllimport ) x
+#endif
+#endif
+
#endif /* !FT_EXPORT */