From 5d9de2f68a0325b0553fda7626a91349e8b4c72e Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Wed, 8 Feb 2017 22:48:02 +0100 Subject: [PATCH] STD[IN|OUT|ERR] macros take from %_FILENO macros instead of hardcoded 0 1 2 --- libft/includes/libft.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libft/includes/libft.h b/libft/includes/libft.h index fb3f1e19..7688a510 100644 --- a/libft/includes/libft.h +++ b/libft/includes/libft.h @@ -13,9 +13,9 @@ #ifndef LIBFT_H # define LIBFT_H -# define STDIN 0 -# define STDOUT 1 -# define STDERR 2 +# define STDIN STDIN_FILENO +# define STDOUT STDOUT_FILENO +# define STDERR STDERR_FILENO # define STDBUG 3 # define DG_MSG0 "{inv}{yel}%21s {bol}{blu}%-3d{eoc}"