1 diff --git a/include/plist/plist.h b/include/plist/plist.h
2 index 2863c74..9cdb219 100644
3 --- a/include/plist/plist.h
4 +++ b/include/plist/plist.h
5 @@ -42,7 +42,7 @@ extern "C"
10 +#if defined(_MSC_VER) && defined(LIBPLIST_EXPORTS)
11 #define PLIST_API_MSC __declspec( dllexport )
14 diff --git a/src/plist.h b/src/plist.h
15 index 1e5d0d1..6690343 100644
23 - #define PLIST_API __declspec( dllexport )
26 +#if (defined(_MSC_VER) || defined(WIN32)) && defined(LIBPLIST_EXPORTS)
27 #define PLIST_API __declspec( dllexport )
29 #ifdef HAVE_FVISIBILITY