Commit fa3d8b41 authored by Eric Petit's avatar Eric Petit

configure.ac:

  + updated libebml/libmatroska detection as matroska headers no longer
    include ebml headers directly. Hope you upgraded it - if not, you'll
    have to set your CFLAGS accordingly.
  + on BeOS, libmkv_plugin.so has to be linked to libstdc++

 modules/control/http.c:
  + fix for gcc != 3
parent 0dea3ebd
dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.87 2003/10/07 21:13:01 sam Exp $
dnl $Id: configure.ac,v 1.88 2003/10/21 01:05:32 titer Exp $
AC_INIT(vlc,0.6.3-cvs)
......@@ -137,6 +137,7 @@ case "${target_os}" in
CXXFLAGS_save="${CXXFLAGS_save} -Wno-multichar"; CXXFLAGS="${CXXFLAGS_save}"
AX_ADD_LDFLAGS([vlc beos],[-lbe])
AX_ADD_LDFLAGS([beos],[-lmedia -ltranslation -ltracker -lgame])
AX_ADD_LDFLAGS([mkv],[-lstdc++.r4])
dnl Check for BONE presence
AC_CHECK_LIB(socket, connect,
......@@ -1547,12 +1548,9 @@ AC_ARG_ENABLE(mkv,
if test "${enable_mkv}" != "no"
then
AC_LANG_PUSH(C++)
dnl matroska headers include ebml headers directly... pouah that stinks
CPPFLAGS="${CPPFLAGS_save} -I/usr/local/include/ebml -I/usr/include/ebml"
AC_CHECK_HEADERS(EbmlVersion.h matroska/KaxVersion.h, [
AC_CHECK_HEADERS(ebml/EbmlVersion.h matroska/KaxVersion.h, [
AC_CHECK_HEADERS(matroska/KaxAttachments.h)
AX_ADD_PLUGINS([mkv])
AX_ADD_CXXFLAGS([mkv],[-I/usr/local/include/ebml -I/usr/include/ebml])
AC_CHECK_LIB(ebml_pic,main,[
# We have ebml_pic, that's good, we can build an mkv.so plugin !
AX_ADD_LDFLAGS([mkv],[-lmatroska_pic -lebml_pic])
......
......@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: http.c,v 1.23 2003/10/17 18:59:00 zorglub Exp $
* $Id: http.c,v 1.24 2003/10/21 01:05:32 titer Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
......@@ -1422,14 +1422,16 @@ static void MacroDo( httpd_file_callback_args_t *p_args,
#define PRINTS( str, s ) \
ALLOC( strlen( str ) + strlen( s ) + 1 ); \
char * psz_cur = *pp_dst; \
*pp_dst += sprintf( *pp_dst, str, s ); \
while( psz_cur && *psz_cur ) \
{ \
/* Prevent script injection */ \
if( *psz_cur == '<' ) *psz_cur = '*'; \
if( *psz_cur == '>' ) *psz_cur = '*'; \
psz_cur++ ; \
{ \
char * psz_cur = *pp_dst; \
*pp_dst += sprintf( *pp_dst, str, s ); \
while( psz_cur && *psz_cur ) \
{ \
/* Prevent script injection */ \
if( *psz_cur == '<' ) *psz_cur = '*'; \
if( *psz_cur == '>' ) *psz_cur = '*'; \
psz_cur++ ; \
} \
}
switch( StrToMacroType( m->id ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment