From: Lasse Collin Date: Sat, 7 Feb 2009 13:55:47 +0000 (+0200) Subject: Support LZMA_API_STATIC in assembler files to X-Git-Tag: upstream/5.1.3~589 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfd91198e44a52bd9bfe3cd6dcae5edab7c6eb45;p=platform%2Fupstream%2Fxz.git Support LZMA_API_STATIC in assembler files to avoid __declspec(dllexport) equivalent. --- diff --git a/src/liblzma/check/crc32_x86.S b/src/liblzma/check/crc32_x86.S index 859311a..a9d07f0 100644 --- a/src/liblzma/check/crc32_x86.S +++ b/src/liblzma/check/crc32_x86.S @@ -262,17 +262,21 @@ LZMA_CRC32: #endif #if defined(__MACH__) && (defined(PIC) || defined(__PIC__)) + /* Mach-O PIC */ .section __IMPORT,__pointers,non_lazy_symbol_pointers .L_lzma_crc32_table$non_lazy_ptr: .indirect_symbol LZMA_CRC32_TABLE .long 0 #elif defined(_WIN32) +# ifndef LZMA_API_STATIC /* This is equivalent of __declspec(dllexport). */ .section .drectve .ascii " -export:lzma_crc32" +# endif #else + /* ELF */ .size LZMA_CRC32, .-LZMA_CRC32 #endif diff --git a/src/liblzma/check/crc64_x86.S b/src/liblzma/check/crc64_x86.S index abd8f9d..031285e 100644 --- a/src/liblzma/check/crc64_x86.S +++ b/src/liblzma/check/crc64_x86.S @@ -255,9 +255,11 @@ LZMA_CRC64: .long 0 #elif defined(_WIN32) +# ifndef LZMA_API_STATIC /* This is equivalent of __declspec(dllexport). */ .section .drectve .ascii " -export:lzma_crc64" +# endif #else /* ELF */