aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/crc64_x86.S
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-06-26 15:37:53 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-06-26 15:37:53 +0300
commit390a6408563067613b29de895cb40e4d0386d62c (patch)
tree74efbd8a29a433fb3c15697d65b8dc3f00011b87 /src/liblzma/check/crc64_x86.S
parentFix @variables@ to $(variables) in Makefile.am files. (diff)
downloadxz-390a6408563067613b29de895cb40e4d0386d62c.tar.xz
Basic support for building with Cygwin and MinGW using
the Autotools based build system. It's not good yet, more fixes will follow.
Diffstat (limited to '')
-rw-r--r--src/liblzma/check/crc64_x86.S7
1 files changed, 4 insertions, 3 deletions
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"