diff --git a/include/xlnt/xlnt_config.hpp b/include/xlnt/xlnt_config.hpp index 73567629..642cd245 100644 --- a/include/xlnt/xlnt_config.hpp +++ b/include/xlnt/xlnt_config.hpp @@ -28,10 +28,14 @@ #ifdef XLNT_EXPORT #define XLNT_API __declspec(dllexport) #else +#ifdef XLNT_SHARED // For clients of the library, supress warnings about DLL interfaces for standard library classes #pragma warning(disable : 4251) #pragma warning(disable : 4275) #define XLNT_API __declspec(dllimport) +#else +#define XLNT_API +#endif #endif #else #define XLNT_API