]> git.sesse.net Git - vlc/commitdiff
libflac installs its own assert.h which fails to define assert()
authorRafaël Carré <rafael.carre@gmail.com>
Thu, 17 Jun 2010 03:36:24 +0000 (05:36 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 17 Jun 2010 04:06:19 +0000 (07:06 +0300)
Define assert() to no-op

modules/codec/flac.c

index 97204c0a72bfa590de91e77c6464b893f439e3de..c348a426bdc2080a35ab8543a7a6867997ab46cc 100644 (file)
@@ -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