aboutsummaryrefslogtreecommitdiff
path: root/ft_strcpy.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strcpy.s')
-rw-r--r--ft_strcpy.s11
1 files changed, 9 insertions, 2 deletions
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