aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-08 22:51:29 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-08 22:52:07 +0100
commit8307b7b5f28b0c3516f10000b1ac89c50cfa4d63 (patch)
tree6f5234cb0c6f9340f491d60ece73af5ea18a67d8
parent19964c7a382bcc5c0f09b1233b54b559c44e3a28 (diff)
downloadlibft-8307b7b5f28b0c3516f10000b1ac89c50cfa4d63.tar.gz
libft-8307b7b5f28b0c3516f10000b1ac89c50cfa4d63.tar.bz2
libft-8307b7b5f28b0c3516f10000b1ac89c50cfa4d63.zip
Linux portabilitycub3d
-rw-r--r--ft_putchar_fd.c3
-rw-r--r--ft_putstr_fd.c3
-rw-r--r--libft.h5
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 <unistd.h>
-#include <limits.h>
+#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 <unistd.h>
-#include <limits.h>
+#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 <errno.h>
+# include <unistd.h>
# include <string.h>
# include <stdlib.h>
# define TRUE 1
# define FALSE 0
+# ifndef OPEN_MAX
+# define OPEN_MAX 1024
+# endif
+
typedef unsigned char t_byte;
typedef int t_bool;