From 5e9eb0b7fd77e03c8eb3e4ca10e947f1116fd064 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 2 Jun 2015 20:34:13 +0200 Subject: [PATCH] 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. --- include/platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/platform.h b/include/platform.h index 3b60114..0444e78 100644 --- a/include/platform.h +++ b/include/platform.h @@ -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