Small fix in platform.h, just for windows (WIN32)
Not sure how this has lasted so long, but I guess there are not too many users wanting to specifically use the static tidy library. Now it is possible to define TIDY_STATIC and the TIDY_EXPORT macro will just be 'external', suitable for linking with the static library, instead of adding the _imp_ MSVC __declspec( dllimport )... This fix does not effect other than the WIN32 platform build.
This commit is contained in:
parent
b8bc88522c
commit
5e9eb0b7fd
|
@ -495,7 +495,7 @@ extern "C" {
|
|||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#if (defined(_USRDLL) || defined(_WINDLL)) || defined(BUILD_SHARED_LIB) && !defined(TIDY_EXPORT)
|
||||
#if (defined(_USRDLL) || defined(_WINDLL) || defined(BUILD_SHARED_LIB)) && !defined(TIDY_EXPORT) && !defined(TIDY_STATIC)
|
||||
#ifdef BUILDING_SHARED_LIB
|
||||
#define TIDY_EXPORT __declspec( dllexport )
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue