aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/crc64_x86.S
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-02-12 12:31:22 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-02-12 12:31:22 +0200
commit6b50c9429bf85521d355adc61745d06ee017f8c8 (patch)
treec4f6a4c82d619f89113cd77d10f1000bd8488287 /src/liblzma/check/crc64_x86.S
parentSubtle change to liblzma Block handling API. (diff)
downloadxz-6b50c9429bf85521d355adc61745d06ee017f8c8.tar.xz
Use __APPLE__ instead of __MACH__ in ASM files.
This allows the files to work on HURD. Thanks to Jonathan Nieder.
Diffstat (limited to 'src/liblzma/check/crc64_x86.S')
-rw-r--r--src/liblzma/check/crc64_x86.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liblzma/check/crc64_x86.S b/src/liblzma/check/crc64_x86.S
index 9a63726e..e095ce1a 100644
--- a/src/liblzma/check/crc64_x86.S
+++ b/src/liblzma/check/crc64_x86.S
@@ -57,7 +57,7 @@ init_table(void)
* Solaris assembler doesn't have .p2align, and Darwin uses .align
* differently than GNU/Linux and Solaris.
*/
-#if defined(__MACH__) || defined(__MSDOS__)
+#if defined(__APPLE__) || defined(__MSDOS__)
# define ALIGN(pow2, abs) .align pow2
#else
# define ALIGN(pow2, abs) .align abs
@@ -66,7 +66,7 @@ init_table(void)
.text
.globl LZMA_CRC64
-#if !defined(__MACH__) && !defined(_WIN32) && !defined(__CYGWIN__) \
+#if !defined(__APPLE__) && !defined(_WIN32) && !defined(__CYGWIN__) \
&& !defined(__MSDOS__)
.type LZMA_CRC64, @function
#endif
@@ -110,7 +110,7 @@ LZMA_CRC64:
|| (defined(_WIN32) || defined(__CYGWIN__))
/* Not PIC */
movl $ LZMA_CRC64_TABLE, %ebx
-#elif defined(__MACH__)
+#elif defined(__APPLE__)
/* Mach-O */
call .L_get_pc
.L_pic:
@@ -258,7 +258,7 @@ LZMA_CRC64:
ret
#endif
-#if defined(__MACH__) && (defined(PIC) || defined(__PIC__))
+#if defined(__APPLE__) && (defined(PIC) || defined(__PIC__))
/* Mach-O PIC */
.section __IMPORT,__pointers,non_lazy_symbol_pointers
.L_lzma_crc64_table$non_lazy_ptr: