diff options
Diffstat (limited to 'ft_strdup.s')
| -rw-r--r-- | ft_strdup.s | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
