]> git.sesse.net Git - vlc/commitdiff
* ./include/aout_internal.h: fixed a breakage I just introduced.
authorSam Hocevar <sam@videolan.org>
Sat, 9 Nov 2002 18:28:36 +0000 (18:28 +0000)
committerSam Hocevar <sam@videolan.org>
Sat, 9 Nov 2002 18:28:36 +0000 (18:28 +0000)
include/aout_internal.h

index e94b3cbdc1786184ce29e14fbc1e772b67796e36..c87702015fe98f2b5d2d59f34e5cdb15f899a220 100644 (file)
@@ -2,7 +2,7 @@
  * aout_internal.h : internal defines for audio output
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: aout_internal.h,v 1.28 2002/11/09 16:34:52 sam Exp $
+ * $Id: aout_internal.h,v 1.29 2002/11/09 18:28:36 sam Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -35,14 +35,14 @@ typedef struct aout_alloc_t
 #define AOUT_ALLOC_HEAP     2
 
 #ifdef HAVE_ALLOCA
-#   define ALLOCA_TEST \
+#   define ALLOCA_TEST( p_alloc, p_new_buffer )                             \
         if ( (p_alloc)->i_alloc_type == AOUT_ALLOC_STACK )                  \
         {                                                                   \
             (p_new_buffer) = alloca( i_alloc_size + sizeof(aout_buffer_t) );\
         }                                                                   \
         else
 #else
-#   define ALLOCA_TEST
+#   define ALLOCA_TEST( p_alloc, p_new_buffer )
 #endif
 
 #define aout_BufferAlloc( p_alloc, i_nb_usec, p_previous_buffer,            \
@@ -56,7 +56,7 @@ typedef struct aout_alloc_t
         int i_alloc_size;                                                   \
         i_alloc_size = (u64)(p_alloc)->i_bytes_per_sec                      \
                                             * (i_nb_usec) / 1000000 + 1;    \
-        ALLOCA_TEST                                                         \
+        ALLOCA_TEST( p_alloc, p_new_buffer )                                \
         {                                                                   \
             (p_new_buffer) = malloc( i_alloc_size + sizeof(aout_buffer_t) );\
         }                                                                   \