From 66bfb5efc23b4dd9819bf70b5a709c81ccf7a820 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 14 Jan 2020 15:19:35 +0100 Subject: Linux portability and fix prettier bug --- libasm_test.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libasm_test.h') diff --git a/libasm_test.h b/libasm_test.h index 675c5ad..8be0b68 100644 --- a/libasm_test.h +++ b/libasm_test.h @@ -13,21 +13,25 @@ # define TO_STRING(x) #x +# ifdef __linux__ +# define OPEN_MAX FOPEN_MAX +# endif + /* * mandatory */ int ft_strlen(char *str); -char -*ft_strcpy(char *dst, const char *src); +char* +ft_strcpy(char *dst, const char *src); int ft_strcmp(const char *s1, const char *s2); int ft_write(int fildes, const void *buf, size_t buf_size); int ft_read(int fildes, void *buf, size_t buf_size); -char -*ft_strdup(const char *str); +char* +ft_strdup(const char *str); /* * bonus -- cgit