diff options
author | Yann Collet <cyan@fb.com> | 2016-10-21 16:49:30 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-10-21 16:49:30 (GMT) |
commit | 7e112cfa5cd3dfb6d6df97e31c5d68bff4ec0713 (patch) | |
tree | f6c91975bbfb25747a8c096478660b398d8e8a74 /lib/lz4.h | |
parent | e64a926924e31ce16d4de05a810bb2cef8624fa2 (diff) | |
download | lz4-7e112cfa5cd3dfb6d6df97e31c5d68bff4ec0713.zip lz4-7e112cfa5cd3dfb6d6df97e31c5d68bff4ec0713.tar.gz lz4-7e112cfa5cd3dfb6d6df97e31c5d68bff4ec0713.tar.bz2 |
fixes static compilation under Windows (#246)
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |