From cd5c9e6a923878e797212d27476ee217eb844a14 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 11 Feb 2021 15:40:48 +0100 Subject: Added Linux compatibility --- ft_strcpy.s | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ft_strcpy.s') diff --git a/ft_strcpy.s b/ft_strcpy.s index 3789283..eb8ea1a 100644 --- a/ft_strcpy.s +++ b/ft_strcpy.s @@ -10,10 +10,17 @@ ; ; ; **************************************************************************** ; -global _ft_strcpy +%ifdef __LINUX__ + %define M_FT_STRCPY ft_strcpy +%else + %define M_FT_STRCPY _ft_strcpy +%endif +global M_FT_STRCPY + +section .text ; char *ft_strcpy(char *dst, const char *src); -_ft_strcpy: +M_FT_STRCPY: push rbx push rcx mov rax, rdi ; dst -- cgit