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_strcmp.s | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ft_strcmp.s') 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 -- cgit