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_list_push_front.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ft_list_push_front.s') diff --git a/ft_list_push_front.s b/ft_list_push_front.s index 4eedf75..072f1e7 100644 --- a/ft_list_push_front.s +++ b/ft_list_push_front.s @@ -12,7 +12,7 @@ %ifdef __LINUX__ %define M_FT_LIST_PUSH_FRONT ft_list_push_front - %define M_MALLOC malloc + %define M_MALLOC malloc wrt ..plt %else %define M_FT_LIST_PUSH_FRONT _ft_list_push_front %define M_MALLOC _malloc @@ -31,7 +31,7 @@ M_FT_LIST_PUSH_FRONT: push rsi xor rdi, rdi mov edi, 16 - call M_MALLOC wrt ..plt + call M_MALLOC pop rsi pop rdi cmp rax, 0 -- cgit