Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
54a847e6
Commit
54a847e6
authored
Jan 26, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ifdef's to guard against setlocale() in vlc-cache-gen
parent
474088e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
bin/cachegen.c
bin/cachegen.c
+6
-1
configure.ac
configure.ac
+1
-1
No files found.
bin/cachegen.c
View file @
54a847e6
...
@@ -25,7 +25,10 @@
...
@@ -25,7 +25,10 @@
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <locale.h>
#ifdef HAVE_SETLOCALE
# include <locale.h>
#endif
#ifdef HAVE_GETOPT_H
#ifdef HAVE_GETOPT_H
# include <getopt.h>
# include <getopt.h>
...
@@ -56,7 +59,9 @@ int main (int argc, char *argv[])
...
@@ -56,7 +59,9 @@ int main (int argc, char *argv[])
{
NULL
,
no_argument
,
NULL
,
'\0'
}
{
NULL
,
no_argument
,
NULL
,
'\0'
}
};
};
#ifdef HAVE_SETLOCALE
setlocale
(
LC_CTYPE
,
""
);
/* needed by FromLocale() */
setlocale
(
LC_CTYPE
,
""
);
/* needed by FromLocale() */
#endif
int
c
;
int
c
;
while
((
c
=
getopt_long
(
argc
,
argv
,
"hV"
,
opts
,
NULL
))
!=
-
1
)
while
((
c
=
getopt_long
(
argc
,
argv
,
"hV"
,
opts
,
NULL
))
!=
-
1
)
...
...
configure.ac
View file @
54a847e6
...
@@ -562,7 +562,7 @@ dnl Check for system libs needed
...
@@ -562,7 +562,7 @@ dnl Check for system libs needed
need_libc=false
need_libc=false
dnl Check for usual libc functions
dnl Check for usual libc functions
AC_CHECK_FUNCS([ctime_r daemon fcntl fdopendir fork getenv getpwuid_r gettimeofday isatty lstat memalign posix_fadvise posix_madvise posix_memalign putenv setenv stricmp strnicmp tdestroy uselocale])
AC_CHECK_FUNCS([ctime_r daemon fcntl fdopendir fork getenv getpwuid_r gettimeofday isatty lstat memalign posix_fadvise posix_madvise posix_memalign putenv setenv s
etlocale s
tricmp strnicmp tdestroy uselocale])
AC_REPLACE_FUNCS([asprintf atof atoll getcwd getpid gmtime_r lldiv localtime_r rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtok_r strtoll swab vasprintf])
AC_REPLACE_FUNCS([asprintf atof atoll getcwd getpid gmtime_r lldiv localtime_r rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtok_r strtoll swab vasprintf])
AC_CHECK_FUNCS(fdatasync,,
AC_CHECK_FUNCS(fdatasync,,
[AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
[AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment