aboutsummaryrefslogtreecommitdiff
path: root/ft_strcmp.s
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strcmp.s')
-rw-r--r--ft_strcmp.s12
1 files changed, 10 insertions, 2 deletions
diff --git a/ft_strcmp.s b/ft_strcmp.s
index 7704aa5..7c55a43 100644
--- a/ft_strcmp.s
+++ b/ft_strcmp.s
@@ -10,10 +10,18 @@
; ;
; **************************************************************************** ;
-global _ft_strcmp
+%ifdef __LINUX__
+ %define M_FT_STRCMP ft_strcmp
+%else
+ %define M_FT_STRCMP _ft_strcmp
+%endif
+
+global M_FT_STRCMP
+
+section .text
; int ft_strcmp(const char *s1, const char *s2);
-_ft_strcmp:
+M_FT_STRCMP:
push r12
push r13
push rcx