* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc_common.h,v 1.98 2004/01/07 23:39:40 fenrir Exp $
+ * $Id: vlc_common.h,v 1.99 2004/01/08 10:27:06 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
# define vlc_strdup NULL
#endif
-#ifndef HAVE_VASPRINTF
+#if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
# define vasprintf vlc_vasprintf
VLC_EXPORT( char *, vlc_vasprintf, ( const char *s ) );
#elif !defined(__PLUGIN__)
* libc.c: Extra libc function for some systems.
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: libc.c,v 1.11 2004/01/07 23:39:41 fenrir Exp $
+ * $Id: libc.c,v 1.12 2004/01/08 10:27:07 fenrir Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Samuel Hocevar <sam@zoy.org>
/*****************************************************************************
* vasprintf:
*****************************************************************************/
-#if !defined( HAVE_VASPRINTF )
+#if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
int vlc_vasprintf(char **strp, const char *fmt, va_list ap)
{
/* Guess we need no more than 100 bytes. */