From: RĂ©mi Denis-Courmont Date: Thu, 22 May 2008 16:42:46 +0000 (+0300) Subject: If uselocale() is absent, assume libc does no localization X-Git-Tag: 0.9.0-test0~819 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9298671dc006165c536e499e5721b7614d8ce829;p=vlc If uselocale() is absent, assume libc does no localization Otherwise, the user is screwed anyway --- diff --git a/configure.ac b/configure.ac index fcf564cfa4..a8f6befc25 100644 --- a/configure.ac +++ b/configure.ac @@ -483,7 +483,7 @@ dnl Check for system libs needed need_libc=false dnl Check for usual libc functions -AC_CHECK_FUNCS([gettimeofday strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid_r memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat strlcpy strdup strndup strnlen atof lldiv posix_fadvise posix_madvise]) +AC_CHECK_FUNCS([gettimeofday strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid_r memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat strlcpy strdup strndup strnlen atof lldiv posix_fadvise posix_madvise uselocale]) AC_CHECK_FUNCS(strcasecmp,,[AC_CHECK_FUNCS(stricmp)]) AC_CHECK_FUNCS(strncasecmp,,[AC_CHECK_FUNCS(strnicmp)]) AC_CHECK_FUNCS(strcasestr,,[AC_CHECK_FUNCS(stristr)]) diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h index 98b6174a80..ea464a4fb4 100644 --- a/include/vlc_fixups.h +++ b/include/vlc_fixups.h @@ -156,4 +156,11 @@ VLC_INTERNAL( void, vlc_seekdir, ( void *, long ) ); VLC_INTERNAL( long, vlc_telldir, ( void * ) ); #endif +#ifndef HAVE_USELOCALE +typedef void *locale_t; +# define newlocale( a, b, c ) ((locale_t)0) +# define uselocale( a ) ((locale_t)0) +# define freelocale( a ) (void)0 +#endif + #endif /* !LIBVLC_FIXUPS_H */