aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblzma/check')
-rw-r--r--src/liblzma/check/crc32_x86.S7
-rw-r--r--src/liblzma/check/crc64_x86.S7
2 files changed, 8 insertions, 6 deletions
diff --git a/src/liblzma/check/crc32_x86.S b/src/liblzma/check/crc32_x86.S
index b3c7538f..2342168b 100644
--- a/src/liblzma/check/crc32_x86.S
+++ b/src/liblzma/check/crc32_x86.S
@@ -76,7 +76,8 @@ init_table(void)
.text
.globl LZMA_CRC32
-#if !defined(__MACH__) && !defined(_WIN32) && !defined(__MSDOS__)
+#if !defined(__MACH__) && !defined(_WIN32) && !defined(__CYGWIN__) \
+ && !defined(__MSDOS__)
.type LZMA_CRC32, @function
#endif
@@ -275,8 +276,8 @@ LZMA_CRC32:
.indirect_symbol LZMA_CRC32_TABLE
.long 0
-#elif defined(_WIN32)
-# ifndef LZMA_API_STATIC
+#elif defined(_WIN32) || defined(__CYGWIN__)
+# ifdef DLL_EXPORT
/* This is equivalent of __declspec(dllexport). */
.section .drectve
.ascii " -export:lzma_crc32"
diff --git a/src/liblzma/check/crc64_x86.S b/src/liblzma/check/crc64_x86.S
index 5e170bc8..8b0a42db 100644
--- a/src/liblzma/check/crc64_x86.S
+++ b/src/liblzma/check/crc64_x86.S
@@ -66,7 +66,8 @@ init_table(void)
.text
.globl LZMA_CRC64
-#if !defined(__MACH__) && !defined(_WIN32) && !defined(__MSDOS__)
+#if !defined(__MACH__) && !defined(_WIN32) && !defined(__CYGWIN__) \
+ && !defined(__MSDOS__)
.type LZMA_CRC64, @function
#endif
@@ -258,8 +259,8 @@ LZMA_CRC64:
.indirect_symbol LZMA_CRC64_TABLE
.long 0
-#elif defined(_WIN32)
-# ifndef LZMA_API_STATIC
+#elif defined(_WIN32) || defined(__CYGWIN__)
+# ifdef DLL_EXPORT
/* This is equivalent of __declspec(dllexport). */
.section .drectve
.ascii " -export:lzma_crc64"