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_strdup.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ft_strdup.s') diff --git a/ft_strdup.s b/ft_strdup.s index 09ae2ba..7de9077 100644 --- a/ft_strdup.s +++ b/ft_strdup.s @@ -15,7 +15,7 @@ %define M_FT_STRDUP ft_strdup %define M_FT_STRLEN ft_strlen %define M_FT_STRCPY ft_strcpy - %define M_MALLOC malloc + %define M_MALLOC malloc wrt ..plt %else %define M_FT_STRDUP _ft_strdup %define M_FT_STRLEN _ft_strlen @@ -38,7 +38,7 @@ M_FT_STRDUP: inc rax ; len++ for '\0' mov rdi, rax ; size to malloc - call M_MALLOC wrt ..plt + call M_MALLOC cmp rax, 0 je FT_STRDUP_ERROR -- cgit