From 5e058cf1a0f66082ecb6f255d2b346c0dfa441c9 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 25 Feb 2021 10:50:28 +0100 Subject: Fixing compilation on Linux by removing wrt ..plt in extern declaration --- ft_list_push_front.s | 6 ++++-- 1 file changed, 4 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 072f1e7..048a776 100644 --- a/ft_list_push_front.s +++ b/ft_list_push_front.s @@ -10,9 +10,11 @@ ; ; ; **************************************************************************** ; +%include "libasm.s" + %ifdef __LINUX__ %define M_FT_LIST_PUSH_FRONT ft_list_push_front - %define M_MALLOC malloc wrt ..plt + %define M_MALLOC malloc %else %define M_FT_LIST_PUSH_FRONT _ft_list_push_front %define M_MALLOC _malloc @@ -31,7 +33,7 @@ M_FT_LIST_PUSH_FRONT: push rsi xor rdi, rdi mov edi, 16 - call M_MALLOC + call M_MALLOC M_EXTERN_CALL_SUFFIX pop rsi pop rdi cmp rax, 0 -- cgit