diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-25 10:50:28 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-25 10:50:28 +0100 |
| commit | 5e058cf1a0f66082ecb6f255d2b346c0dfa441c9 (patch) | |
| tree | d2ebf98e79e350fac4f2cef7d5db75b265aef6ef /ft_list_remove_if.s | |
| parent | a2347a0780a90d9f7add3f63a9752229262eedc2 (diff) | |
| download | libasm-5e058cf1a0f66082ecb6f255d2b346c0dfa441c9.tar.gz libasm-5e058cf1a0f66082ecb6f255d2b346c0dfa441c9.tar.bz2 libasm-5e058cf1a0f66082ecb6f255d2b346c0dfa441c9.zip | |
Fixing compilation on Linux by removing wrt ..plt in extern declaration
Diffstat (limited to 'ft_list_remove_if.s')
| -rw-r--r-- | ft_list_remove_if.s | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ft_list_remove_if.s b/ft_list_remove_if.s index e415768..c9072a6 100644 --- a/ft_list_remove_if.s +++ b/ft_list_remove_if.s @@ -10,9 +10,11 @@ ; ; ; **************************************************************************** ; +%include "libasm.s" + %ifdef __LINUX__ %define M_FT_LIST_REMOVE_IF ft_list_remove_if - %define M_FREE free wrt ..plt + %define M_FREE free %else %define M_FT_LIST_REMOVE_IF _ft_list_remove_if %define M_FREE _free @@ -88,7 +90,7 @@ FT_LIST_REMOVE_IF_REMOVE: EXTERN_FUNCTION_SAVE mov rdi, [rdi] - call M_FREE ; free(*begin_list) + call M_FREE M_EXTERN_CALL_SUFFIX ; free(*begin_list) EXTERN_FUNCTION_SAVE_END mov rax, [rbp - 8] |
