[xiph-commits] r3823 - in liboggplay/trunk: . src/liboggplay

conrad at svn.annodex.net conrad at svn.annodex.net
Tue Dec 9 00:54:32 PST 2008


Author: conrad
Date: 2008-12-09 00:54:31 -0800 (Tue, 09 Dec 2008)
New Revision: 3823

Modified:
   liboggplay/trunk/configure.ac
   liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c
Log:
check for presence of assert()


Modified: liboggplay/trunk/configure.ac
===================================================================
--- liboggplay/trunk/configure.ac	2008-12-08 12:02:29 UTC (rev 3822)
+++ liboggplay/trunk/configure.ac	2008-12-09 08:54:31 UTC (rev 3823)
@@ -26,6 +26,9 @@
 dnl Add parameters for aclocal
 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
 
+dnl Checks for library functions
+AC_CHECK_FUNCS([assert])
+
 # Check for valgrind
 VALGRIND_ENVIRONMENT=""
 ac_enable_valgrind=no

Modified: liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c	2008-12-08 12:02:29 UTC (rev 3822)
+++ liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c	2008-12-09 08:54:31 UTC (rev 3823)
@@ -59,7 +59,11 @@
 #include <unistd.h>
 #endif
 
+#if HAVE_ASSERT
 #include <assert.h>
+#else
+#define assert(x)
+#endif
 
 #define PRINT_BUFFER(s,m) \
     printf("%s: in_mem: %d size: %d pos: %d stored: %d\n", \



More information about the commits mailing list