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_strdup.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ft_strdup.s') diff --git a/ft_strdup.s b/ft_strdup.s index 7de9077..6690819 100644 --- a/ft_strdup.s +++ b/ft_strdup.s @@ -10,12 +10,13 @@ ; ; ; **************************************************************************** ; +%include "libasm.s" %ifdef __LINUX__ %define M_FT_STRDUP ft_strdup %define M_FT_STRLEN ft_strlen %define M_FT_STRCPY ft_strcpy - %define M_MALLOC malloc wrt ..plt + %define M_MALLOC malloc %else %define M_FT_STRDUP _ft_strdup %define M_FT_STRLEN _ft_strlen @@ -38,7 +39,7 @@ M_FT_STRDUP: inc rax ; len++ for '\0' mov rdi, rax ; size to malloc - call M_MALLOC + call M_MALLOC M_EXTERN_CALL_SUFFIX cmp rax, 0 je FT_STRDUP_ERROR -- cgit