Mercurial > mplayer.hg
diff libmpdvdkit2/libdvdcss.h @ 20425:f59726d0761e
Sync with upstream r201.
author | diego |
---|---|
date | Wed, 25 Oct 2006 11:55:06 +0000 |
parents | 954cdf2171f6 |
children |
line wrap: on
line diff
--- a/libmpdvdkit2/libdvdcss.h Wed Oct 25 00:05:14 2006 +0000 +++ b/libmpdvdkit2/libdvdcss.h Wed Oct 25 11:55:06 2006 +0000 @@ -78,6 +78,19 @@ * Functions used across the library *****************************************************************************/ #define print_error(dvdcss,msg) _print_error(dvdcss,msg) +#if defined( _MSC_VER ) +#include <stdarg.h> +__forceinline void print_debug(dvdcss_t dvdcss, const char *msg,...) +{ + va_list args; + + fprintf( stderr, "libdvdcss debug: " ); + va_start( args, msg ); + vfprintf( stderr, msg, args ); + va_end( args ); + fprintf( stderr, "\n" ); +} +#else #define print_debug(dvdcss,msg,args...) \ if( dvdcss->b_debug ) \ { \ @@ -85,6 +98,7 @@ fprintf( stderr, msg, ##args ); \ fprintf( stderr, "\n" ); \ } +#endif void _print_error ( dvdcss_t, char * );