Support LZMA_API_STATIC in assembler files to
avoid __declspec(dllexport) equivalent.
This commit is contained in:
parent
3306cf3883
commit
bfd91198e4
|
@ -262,17 +262,21 @@ LZMA_CRC32:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__MACH__) && (defined(PIC) || defined(__PIC__))
|
#if defined(__MACH__) && (defined(PIC) || defined(__PIC__))
|
||||||
|
/* Mach-O PIC */
|
||||||
.section __IMPORT,__pointers,non_lazy_symbol_pointers
|
.section __IMPORT,__pointers,non_lazy_symbol_pointers
|
||||||
.L_lzma_crc32_table$non_lazy_ptr:
|
.L_lzma_crc32_table$non_lazy_ptr:
|
||||||
.indirect_symbol LZMA_CRC32_TABLE
|
.indirect_symbol LZMA_CRC32_TABLE
|
||||||
.long 0
|
.long 0
|
||||||
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
# ifndef LZMA_API_STATIC
|
||||||
/* This is equivalent of __declspec(dllexport). */
|
/* This is equivalent of __declspec(dllexport). */
|
||||||
.section .drectve
|
.section .drectve
|
||||||
.ascii " -export:lzma_crc32"
|
.ascii " -export:lzma_crc32"
|
||||||
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
/* ELF */
|
||||||
.size LZMA_CRC32, .-LZMA_CRC32
|
.size LZMA_CRC32, .-LZMA_CRC32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -255,9 +255,11 @@ LZMA_CRC64:
|
||||||
.long 0
|
.long 0
|
||||||
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
# ifndef LZMA_API_STATIC
|
||||||
/* This is equivalent of __declspec(dllexport). */
|
/* This is equivalent of __declspec(dllexport). */
|
||||||
.section .drectve
|
.section .drectve
|
||||||
.ascii " -export:lzma_crc64"
|
.ascii " -export:lzma_crc64"
|
||||||
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* ELF */
|
/* ELF */
|
||||||
|
|
Loading…
Reference in New Issue