fixes static compilation under Windows (#246)

This commit is contained in:
Yann Collet 2016-10-21 09:49:30 -07:00
parent e64a926924
commit 7e112cfa5c
3 changed files with 6 additions and 6 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@
*.so
*.so.*
*.dylib
*.dSYM # apple
# Executables
*.exe

View File

@ -55,12 +55,8 @@ extern "C" {
* LZ4_DLL_EXPORT :
* Enable exporting of functions when building a Windows DLL
*/
#if defined(_WIN32)
# if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
# define LZ4LIB_API __declspec(dllexport)
# else
# define LZ4LIB_API __declspec(dllimport)
# endif
#if defined(_WIN32) && defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
# define LZ4LIB_API __declspec(dllexport)
#else
# define LZ4LIB_API
#endif

3
programs/.gitignore vendored
View File

@ -13,3 +13,6 @@ fuzzer32
# tests files
tmp*
# artefacts
*.dSYM