Commit 279f805a authored by Sam Hocevar's avatar Sam Hocevar

  * Additional fixes for OSes with no gettext (thanks to ej0).
  * Fixed a potential BeOS linking issue.
  * Fixed a minor bug in input.c.
parent abd8a376
#undef ENABLE_NLS
#undef HAVE_LC_MESSAGES
#undef HAVE_CATGETS
#undef HAVE_GETTEXT
#undef HAVE_STPCPY
#undef PACKAGE #undef PACKAGE
#undef VERSION #undef VERSION
This diff is collapsed.
...@@ -813,8 +813,9 @@ AC_ARG_WITH(mad, ...@@ -813,8 +813,9 @@ AC_ARG_WITH(mad,
dnl special case for BeOS dnl special case for BeOS
if test x$SYS = xbeos if test x$SYS = xbeos
then then
LIB="${LIB} -lbe"
BUILTINS="${BUILTINS} beos" BUILTINS="${BUILTINS} beos"
LIB_BEOS="-lbe -lgame -lroot -ltracker" LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
PLCFLAGS="${PLCFLAGS} -nostart" PLCFLAGS="${PLCFLAGS} -nostart"
dnl default case dnl default case
......
...@@ -52,7 +52,7 @@ $(BUILTIN_OBJ): DVDREAD_%.o: %.c ...@@ -52,7 +52,7 @@ $(BUILTIN_OBJ): DVDREAD_%.o: %.c
all: ../../lib/$(BASE_A) all: ../../lib/$(BASE_A)
libdvdcss: libdvdcss:
cd ../../ && $(MAKE) libdvdcss @cd ../../ && $(MAKE) libdvdcss
#install: #install:
# mkdir -p $(DESTDIR)$(includedir)/videolan # mkdir -p $(DESTDIR)$(includedir)/videolan
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions * Collection of useful common types and macros definitions
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.56 2001/12/11 23:53:20 sam Exp $ * $Id: common.h,v 1.57 2001/12/12 02:13:50 sam Exp $
* *
* Authors: Samuel Hocevar <sam@via.ecp.fr> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -416,7 +416,7 @@ typedef __int64 off_t; ...@@ -416,7 +416,7 @@ typedef __int64 off_t;
# define _(String) (String) # define _(String) (String)
# define N_(String) (String) # define N_(String) (String)
# define textdomain(Domain) # define textdomain(Domain)
# define bindtextdomain(Package, Directory) # define bindtextdomain(Package, Directory) 1
#endif #endif
/***************************************************************************** /*****************************************************************************
......
...@@ -50,11 +50,6 @@ ...@@ -50,11 +50,6 @@
byte first (like Motorola and SPARC, unlike Intel and VAX). */ byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN #undef WORDS_BIGENDIAN
#undef ENABLE_NLS
#undef HAVE_LC_MESSAGES
#undef HAVE_CATGETS
#undef HAVE_GETTEXT
#undef HAVE_STPCPY
#undef PACKAGE #undef PACKAGE
#undef VERSION #undef VERSION
......
...@@ -47,5 +47,5 @@ else ...@@ -47,5 +47,5 @@ else
endif endif
libdvdcss: libdvdcss:
cd ../../ && $(MAKE) libdvdcss @cd ../../ && $(MAKE) libdvdcss
...@@ -47,7 +47,7 @@ else ...@@ -47,7 +47,7 @@ else
endif endif
libdvdcss: libdvdcss:
cd ../../ && $(MAKE) libdvdcss @cd ../../ && $(MAKE) libdvdcss
libdvdread: libdvdread:
cd ../../ && $(MAKE) libdvdread @cd ../../ && $(MAKE) libdvdread
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: input.c,v 1.164 2001/12/10 16:16:51 massiot Exp $ * $Id: input.c,v 1.165 2001/12/12 02:13:50 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -604,6 +604,12 @@ static void CloseThread( input_thread_t * p_input ) ...@@ -604,6 +604,12 @@ static void CloseThread( input_thread_t * p_input )
{ {
f.pf_close( p_input ); f.pf_close( p_input );
} }
else if( ( ( strlen( p_input->p_source ) > 8 )
&& !strncasecmp( p_input->p_source, "dvdread:", 8 ) )
|| TestMethod( INPUT_METHOD_VAR, "dvdread" ) )
{
f.pf_close( p_input );
}
else if( ( strlen( p_input->p_source ) > 4 ) else if( ( strlen( p_input->p_source ) > 4 )
&& !strncasecmp( p_input->p_source, "vlc:", 4 ) ) && !strncasecmp( p_input->p_source, "vlc:", 4 ) )
{ {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* and spawn threads. * and spawn threads.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: main.c,v 1.135 2001/12/10 13:17:35 sam Exp $ * $Id: main.c,v 1.136 2001/12/12 02:13:50 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -58,6 +58,10 @@ ...@@ -58,6 +58,10 @@
# include <io.h> # include <io.h>
#endif #endif
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
#include <errno.h> /* ENOMEM */ #include <errno.h> /* ENOMEM */
#include <stdlib.h> /* getenv(), strtol(), */ #include <stdlib.h> /* getenv(), strtol(), */
#include <string.h> /* strerror() */ #include <string.h> /* strerror() */
...@@ -286,10 +290,12 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] ) ...@@ -286,10 +290,12 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
/* /*
* Support for getext * Support for getext
*/ */
#ifdef HAVE_LOCALE_H
if( ! setlocale(LC_MESSAGES, "") ) if( ! setlocale(LC_MESSAGES, "") )
{ {
fprintf( stderr, "warning: unsupported locale.\n" ); fprintf( stderr, "warning: unsupported locale.\n" );
} }
#endif
if( ! bindtextdomain(PACKAGE, LOCALEDIR) ) if( ! bindtextdomain(PACKAGE, LOCALEDIR) )
{ {
......
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