fixes static compilation under Windows (#246)
This commit is contained in:
parent
e64a926924
commit
7e112cfa5c
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@
|
|||||||
*.so
|
*.so
|
||||||
*.so.*
|
*.so.*
|
||||||
*.dylib
|
*.dylib
|
||||||
|
*.dSYM # apple
|
||||||
|
|
||||||
# Executables
|
# Executables
|
||||||
*.exe
|
*.exe
|
||||||
|
@ -55,12 +55,8 @@ extern "C" {
|
|||||||
* LZ4_DLL_EXPORT :
|
* LZ4_DLL_EXPORT :
|
||||||
* Enable exporting of functions when building a Windows DLL
|
* Enable exporting of functions when building a Windows DLL
|
||||||
*/
|
*/
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
||||||
# if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
|
# define LZ4LIB_API __declspec(dllexport)
|
||||||
# define LZ4LIB_API __declspec(dllexport)
|
|
||||||
# else
|
|
||||||
# define LZ4LIB_API __declspec(dllimport)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define LZ4LIB_API
|
# define LZ4LIB_API
|
||||||
#endif
|
#endif
|
||||||
|
3
programs/.gitignore
vendored
3
programs/.gitignore
vendored
@ -13,3 +13,6 @@ fuzzer32
|
|||||||
|
|
||||||
# tests files
|
# tests files
|
||||||
tmp*
|
tmp*
|
||||||
|
|
||||||
|
# artefacts
|
||||||
|
*.dSYM
|
||||||
|
Loading…
Reference in New Issue
Block a user