diff options
Diffstat (limited to 'src/liblzma/common/common.h')
-rw-r--r-- | src/liblzma/common/common.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h index 392491e4..2642c5bd 100644 --- a/src/liblzma/common/common.h +++ b/src/liblzma/common/common.h @@ -26,11 +26,20 @@ // Don't use ifdef... #if HAVE_VISIBILITY -# define LZMA_API __attribute__((__visibility__("default"))) +# define LZMA_VISIBILITY __attribute__((__visibility__("default"))) #else -# define LZMA_API +# define LZMA_VISIBILITY #endif +#ifdef _WIN32 +# define LZMA_EXPORT __cdecl __declspec(dllexport) +#else +# define LZMA_EXPORT +#endif + +#define LZMA_API LZMA_VISIBILITY LZMA_EXPORT + +#include "lzma.h" // These allow helping the compiler in some often-executed branches, whose // result is almost always the same. |