aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-07 11:11:50 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-07 11:11:50 +0200
commit3306cf3883492720b3c34baa02f4eb4227d91c73 (patch)
treeb3fdbb58d3a7c0b85735a6e52bf6e680d6073229 /src/liblzma/common
parentAnother grammar fix (diff)
downloadxz-3306cf3883492720b3c34baa02f4eb4227d91c73.tar.xz
Introduced LZMA_API_STATIC macro, which the applications
need to #define when linking against static liblzma on platforms like Windows. Most developers don't need to care about LZMA_API_STATIC at all.
Diffstat (limited to 'src/liblzma/common')
-rw-r--r--src/liblzma/common/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h
index cbb2eb9b..5a5fe775 100644
--- a/src/liblzma/common/common.h
+++ b/src/liblzma/common/common.h
@@ -24,7 +24,7 @@
#include "../../common/mythread.h"
#include "../../common/integer.h"
-#if defined(_WIN32)
+#if !defined(LZMA_API_STATIC) && defined(_WIN32)
# define LZMA_API_EXPORT __declspec(dllexport)
// Don't use ifdef or defined() below.
#elif HAVE_VISIBILITY