Commit 835bf800 authored by Laurent Aimar's avatar Laurent Aimar

* all: correct test for vasprintf.

parent 8613e3a9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions * Collection of useful common types and macros definitions
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * 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> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -612,7 +612,7 @@ static inline uint64_t GetQWLE( void * _p ) ...@@ -612,7 +612,7 @@ static inline uint64_t GetQWLE( void * _p )
# define vlc_strdup NULL # define vlc_strdup NULL
#endif #endif
#ifndef HAVE_VASPRINTF #if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
# define vasprintf vlc_vasprintf # define vasprintf vlc_vasprintf
VLC_EXPORT( char *, vlc_vasprintf, ( const char *s ) ); VLC_EXPORT( char *, vlc_vasprintf, ( const char *s ) );
#elif !defined(__PLUGIN__) #elif !defined(__PLUGIN__)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* libc.c: Extra libc function for some systems. * libc.c: Extra libc function for some systems.
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * 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> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -130,7 +130,7 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n ) ...@@ -130,7 +130,7 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n )
/***************************************************************************** /*****************************************************************************
* vasprintf: * 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) int vlc_vasprintf(char **strp, const char *fmt, va_list ap)
{ {
/* Guess we need no more than 100 bytes. */ /* Guess we need no more than 100 bytes. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment