From 8307b7b5f28b0c3516f10000b1ac89c50cfa4d63 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 8 Mar 2020 22:51:29 +0100 Subject: Linux portability --- ft_putchar_fd.c | 3 +-- ft_putstr_fd.c | 3 +-- libft.h | 5 +++++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ft_putchar_fd.c b/ft_putchar_fd.c index a06b8b1..78d94a8 100644 --- a/ft_putchar_fd.c +++ b/ft_putchar_fd.c @@ -10,8 +10,7 @@ /* */ /* ************************************************************************** */ -#include -#include +#include "libft.h" void ft_putchar_fd(char c, int fd) { diff --git a/ft_putstr_fd.c b/ft_putstr_fd.c index 1f2bbda..645c133 100644 --- a/ft_putstr_fd.c +++ b/ft_putstr_fd.c @@ -10,8 +10,7 @@ /* */ /* ************************************************************************** */ -#include -#include +#include "libft.h" void ft_putstr_fd(char *s, int fd) { diff --git a/libft.h b/libft.h index 99c71db..dc8cf0f 100644 --- a/libft.h +++ b/libft.h @@ -14,12 +14,17 @@ # define LIBFT_H # include +# include # include # include # define TRUE 1 # define FALSE 0 +# ifndef OPEN_MAX +# define OPEN_MAX 1024 +# endif + typedef unsigned char t_byte; typedef int t_bool; -- cgit