Commit 0e3168b5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

core: use STDERR_FILENO

parent 264ad6ea
......@@ -125,7 +125,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
else
priv->i_verbose = 3;
#if defined( HAVE_ISATTY ) && !defined( WIN32 )
priv->b_color = isatty( 2 ); /* 2 is for stderr */
priv->b_color = isatty( STDERR_FILENO ); /* 2 is for stderr */
#else
priv->b_color = false;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment