* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.77 2003/04/08 08:35:59 massiot Exp $
+ * $Id: libvlc.c,v 1.78 2003/04/09 19:58:25 gbazin Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
psz_env = getenv( "VLC_VERBOSE" );
libvlc.i_verbose = psz_env ? atoi( psz_env ) : -1;
-#ifdef HAVE_ISATTY
+#if defined( HAVE_ISATTY ) && !defined( WIN32 )
libvlc.b_color = isatty( 2 ); /* 2 is for stderr */
#else
libvlc.b_color = VLC_FALSE;
libvlc.i_verbose = __MIN( i_tmp, 2 );
}
}
- libvlc.b_color = libvlc.b_color || config_GetInt( p_vlc, "color" );
+ libvlc.b_color = libvlc.b_color && config_GetInt( p_vlc, "color" );
/*
* Output messages that may still be in the queue
* modules, especially intf modules. See config.h for output configuration.
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: messages.c,v 1.29 2003/01/15 13:46:05 massiot Exp $
+ * $Id: messages.c,v 1.30 2003/04/09 19:58:25 gbazin Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
*****************************************************************************/
static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
{
-#ifndef WIN32
# define COL(x) "\033[" #x ";1m"
# define RED COL(31)
# define GREEN COL(32)
# define YELLOW COL(33)
# define WHITE COL(37)
# define GRAY "\033[0m"
-#else
-# define RED ""
-# define GREEN ""
-# define YELLOW ""
-# define WHITE ""
-# define GRAY ""
-#endif
#ifdef UNDER_CE
int i_dummy;