Skip to content

Commit

Permalink
Small fix in platform.h, just for windows (WIN32)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
geoffmcl committed Jun 2, 2015
1 parent b8bc885 commit 5e9eb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/platform.h
Expand Up @@ -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
Expand Down

0 comments on commit 5e9eb0b

Please sign in to comment.