]> git.sesse.net Git - vlc/commitdiff
core: use STDERR_FILENO
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 23 Aug 2012 09:22:49 +0000 (12:22 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 23 Aug 2012 09:22:49 +0000 (12:22 +0300)
src/libvlc.c

index 1b968e03b2053386324c95a16d1990e1aaff016b..218bc0d48c902b979da9cdac7e43992e99b8179b 100644 (file)
@@ -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