From a2347a0780a90d9f7add3f63a9752229262eedc2 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 24 Feb 2021 11:49:02 +0100 Subject: Fixing compilation on OSX by moving wrt..plt in LINUX preprocessing directives --- ft_write.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ft_write.s') diff --git a/ft_write.s b/ft_write.s index 0d723f7..2c0d706 100644 --- a/ft_write.s +++ b/ft_write.s @@ -12,7 +12,7 @@ %ifdef __LINUX__ %define M_FT_WRITE ft_write - %define M_ERRNO_LOCATION __errno_location + %define M_ERRNO_LOCATION __errno_location wrt ..plt %define M_SYSCALL_WRITE 0x1 %else %define M_FT_WRITE _ft_write @@ -41,7 +41,7 @@ FT_WRITE_ERROR: neg rax %endif push rax - call M_ERRNO_LOCATION wrt ..plt + call M_ERRNO_LOCATION pop qword [rax] mov rax, -1 ret -- cgit