diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-11 15:40:48 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-11 15:40:48 +0100 |
| commit | cd5c9e6a923878e797212d27476ee217eb844a14 (patch) | |
| tree | f5ea8605d0521cbfbf384b05567bf3d2155b0b45 /ft_strcmp.s | |
| parent | 28424105e255f0a4c887b6e6a83afd6dce372709 (diff) | |
| download | libasm-cd5c9e6a923878e797212d27476ee217eb844a14.tar.gz libasm-cd5c9e6a923878e797212d27476ee217eb844a14.tar.bz2 libasm-cd5c9e6a923878e797212d27476ee217eb844a14.zip | |
Added Linux compatibility
Diffstat (limited to 'ft_strcmp.s')
| -rw-r--r-- | ft_strcmp.s | 12 |
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 |
