fixes static compilation under Windows (#246)
authorYann Collet <cyan@fb.com>
Fri, 21 Oct 2016 16:49:30 +0000 (09:49 -0700)
committerYann Collet <cyan@fb.com>
Fri, 21 Oct 2016 16:49:30 +0000 (09:49 -0700)
.gitignore
lib/lz4.h
programs/.gitignore

index 106915f..cd47ddd 100644 (file)
@@ -11,6 +11,7 @@
 *.so
 *.so.*
 *.dylib
+*.dSYM   # apple
 
 # Executables
 *.exe
index dfe6f2a..3ece4dd 100644 (file)
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -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
index 7110922..df3423e 100644 (file)
@@ -13,3 +13,6 @@ fuzzer32
 
 # tests files
 tmp*
+
+# artefacts
+*.dSYM