From b0c5e6530eed8363cfdd356755d0b2fa2d832fa4 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 --- libftasm/includes/libft.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libftasm/includes/libft.h b/libftasm/includes/libft.h index fb3f1e19..7688a510 100644 --- a/libftasm/includes/libft.h +++ b/libftasm/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}"