[vlc-commits] core: use STDERR_FILENO
    Rémi Denis-Courmont 
    git at videolan.org
       
    Thu Aug 23 11:24:03 CEST 2012
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 23 12:22:49 2012 +0300| [0e3168b5f750b5763fade01961e4dbba7efb78cf] | committer: Rémi Denis-Courmont
core: use STDERR_FILENO
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e3168b5f750b5763fade01961e4dbba7efb78cf
---
 src/libvlc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index 1b968e0..218bc0d 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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
    
    
More information about the vlc-commits
mailing list