]> git.sesse.net Git - vlc/commitdiff
If uselocale() is absent, assume libc does no localization
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 22 May 2008 16:42:46 +0000 (19:42 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 22 May 2008 16:42:46 +0000 (19:42 +0300)
Otherwise, the user is screwed anyway

configure.ac
include/vlc_fixups.h

index fcf564cfa4dde8e18c5cd023d5852451a6f56e68..a8f6befc253c0d7b9f7337c6372f8d42028d2a64 100644 (file)
@@ -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)])
index 98b6174a805c279f0a40aa8bc7b63fc075889259..ea464a4fb475b111523dd5a4744fb0a55bbd489d 100644 (file)
@@ -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 */