]> git.sesse.net Git - vlc/commitdiff
* all: correct test for vasprintf.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 8 Jan 2004 10:27:07 +0000 (10:27 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 8 Jan 2004 10:27:07 +0000 (10:27 +0000)
include/vlc_common.h
src/extras/libc.c

index fd88925bea109a458e5447d6caa1933c15c9b601..602a7cadceb8c1da5874eb531b0e6bf73143a40e 100644 (file)
@@ -3,7 +3,7 @@
  * 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>
@@ -612,7 +612,7 @@ static inline uint64_t GetQWLE( void * _p )
 #   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__)
index 6b44f44d4581ea5404eee1afc0ffd2419a6859f2..fdeb425c1e0b5e8431fbd0158fdf288d6c849857 100644 (file)
@@ -2,7 +2,7 @@
  * 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>
@@ -130,7 +130,7 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n )
 /*****************************************************************************
  * 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. */