* dec.c : audio output API towards decoders
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
- * $Id: dec.c,v 1.14 2004/01/06 12:02:05 zorglub Exp $
+ * $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
* filters.c : audio output filters management
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
- * $Id: filters.c,v 1.20 2004/03/03 20:39:52 gbazin Exp $
+ * $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
* intf.c : audio output API towards the interface modules
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
- * $Id: intf.c,v 1.20 2004/01/06 12:02:05 zorglub Exp $
+ * $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
* intf_eject.c: CD/DVD-ROM ejection handling functions
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
- * $Id: intf_eject.c,v 1.23 2004/01/06 12:02:06 zorglub Exp $
+ * $Id$
*
* Authors: Julien Blache <jb@technologeek.org> for the Linux part
* with code taken from the Linux "eject" command
#include <vlc/vlc.h>
#include <vlc/input.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h> /* ENOMEM */
-#endif
+#include <errno.h> /* ENOMEM */
#include <stdio.h> /* sprintf() */
#include <string.h> /* strerror() */
#include <stdlib.h> /* free() */
* beos_init.cpp: Initialization for BeOS specific features
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
- * $Id: beos_specific.cpp,v 1.37 2004/01/25 17:16:06 zorglub Exp $
+ * $Id$
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
*
* encoding.
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
- * $Id: charset.c,v 1.6 2004/01/06 12:02:06 zorglub Exp $
+ * $Id$
*
* Author: Derk-Jan Hartman <thedj at users.sf.net>
*
#include <stdio.h> /* sprintf() */
#include <stdlib.h> /* free(), strtol() */
#include <string.h> /* strdup() */
-#ifdef HAVE_ERRNO_H
-# include <errno.h> /* errno */
-#endif
+#include <errno.h> /* errno */
#ifdef HAVE_UNISTD_H
# include <unistd.h> /* getuid() */
}
}
-#elif defined( HAVE_ERRNO_H )
+#else
# if defined( WIN32 )
if( mkdir( psz_dirname ) && errno != EEXIST )
# else
psz_dirname, strerror(errno) );
}
-#else
- if( mkdir( psz_dirname ) )
- {
- msg_Err( p_this, "could not create %s", psz_dirname );
- }
-
#endif
return 0;
* error.c: error handling routine
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
- * $Id: error.c,v 1.4 2004/01/25 17:16:06 zorglub Exp $
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
#include "network.h"
#include <string.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
+#include <errno.h>
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
i_ret = select( i_handle_max + 1,
&fds_read, &fds_write, NULL, &timeout );
-#if defined( WIN32 ) || defined( UNDER_CE )
- if( i_ret == -1 )
-#else
if( i_ret == -1 && errno != EINTR )
-#endif
{
msg_Warn( host, "cannot select sockets" );
msleep( 1000 );
# include <fcntl.h> /* O_CREAT, O_TRUNC, O_WRONLY, O_SYNC */
#endif
-#ifdef HAVE_ERRNO_H
-# include <errno.h> /* errno */
-#endif
+#include <errno.h> /* errno */
#ifdef HAVE_UNISTD_H
# include <unistd.h> /* close(), write() */
if( psz_str == NULL )
{
-#ifdef HAVE_ERRNO_H
fprintf( stderr, "main warning: can't store message (%s): ",
strerror(errno) );
-#else
- fprintf( stderr, "main warning: can't store message: " );
-#endif
vlc_va_copy( args, _args );
vfprintf( stderr, psz_format, args );
va_end( args );
* modules_plugin.h : Plugin management functions used by the core application.
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: modules_plugin.h.in,v 1.15 2003/10/05 15:35:59 sam Exp $
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
#include <stdlib.h>
#include <vlc/vlc.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
+#include <errno.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#include "network.h"
-
/*****************************************************************************
* __net_OpenTCP:
*****************************************************************************
timeout.tv_usec = b_block ? 500000 : i_wait;
i_ret = select(fd + 1, &fds_r, NULL, &fds_e, &timeout);
-#ifdef HAVE_ERRNO_H
if( (i_ret < 0 && errno == EINTR) || i_ret == 0 )
-#else
- if( i_ret == 0 )
-#endif
{
if( b_block ) continue;
else return -1;
timeout.tv_usec = 500000;
} while( (i_ret = select(fd + 1, &fds_r, NULL, &fds_e, &timeout)) == 0
-#ifdef HAVE_ERRNO_H
|| ( i_ret < 0 && errno == EINTR ) );
-#else
- );
-#endif
if( i_ret < 0 )
{
i_ret = select(fd + 1, &fds_r, NULL, &fds_e, &timeout);
-#ifdef HAVE_ERRNO_H
if( i_ret < 0 && errno == EINTR )
-#else
- if( 0 )
-#endif
{
return 0;
}
timeout.tv_usec = 500000;
} while( (i_ret = select(fd + 1, NULL, &fds_w, &fds_e, &timeout)) == 0
-#ifdef HAVE_ERRNO_H
|| ( i_ret < 0 && errno == EINTR ) );
-#else
- );
-#endif
if( i_ret < 0 )
{
#include <stdlib.h> /* free(), strtol() */
#include <stdio.h> /* sprintf() */
#include <string.h> /* strerror() */
+#include <errno.h>
#include <vlc/vlc.h>
#include <vlc/vout.h>
#include <vlc/sout.h>
#include <vlc/input.h>
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
-
#include "vlc_playlist.h"
#define PLAYLIST_FILE_HEADER "# vlc playlist file version 0.5"
p_export->p_file = fopen( psz_filename, "wt" );
if( !p_export->p_file )
{
-#ifdef HAVE_ERRNO_H
msg_Err( p_playlist , "could not create playlist file %s"
" (%s)", psz_filename, strerror(errno) );
-#else
- msg_Err( p_playlist , "could not create playlist file %s"
- , psz_filename );
-#endif
return VLC_EGENERIC;
}