[vlc-commits] commit: flac: fix [e62742a716] ( Rafaël Carré )
git at videolan.org
git at videolan.org
Thu Jun 17 05:55:49 CEST 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Jun 17 05:55:06 2010 +0200| [9515f1b2533a6e6eb7f49877ec03e33695ef59cf] | committer: Rafaël Carré
flac: fix [e62742a716]
assert() needs to be defined before being used
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9515f1b2533a6e6eb7f49877ec03e33695ef59cf
---
modules/codec/flac.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index ffd38b2..c348a42 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -26,6 +26,9 @@
* Preamble
*****************************************************************************/
+/* workaround libflac overriding assert.h system header */
+#define assert(x) do {} while(0)
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
@@ -45,11 +48,6 @@
# define USE_NEW_FLAC_API
#endif
-#ifndef assert
- /* workaround libflac overriding assert.h system header */
-# define assert(x) do {} while(0)
-#endif
-
/*****************************************************************************
* decoder_sys_t : FLAC decoder descriptor
*****************************************************************************/
More information about the vlc-commits
mailing list