Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8d52ffe1
Commit
8d52ffe1
authored
Nov 19, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use AC_FUNC_STRCOLL / HAVE_STRCOLL
Windows CE for example doesn't have this function
parent
62ac11ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
configure.ac
configure.ac
+3
-0
modules/access/directory.c
modules/access/directory.c
+4
-0
modules/media_library/sql_monitor.c
modules/media_library/sql_monitor.c
+7
-0
src/input/subtitles.c
src/input/subtitles.c
+1
-1
No files found.
configure.ac
View file @
8d52ffe1
...
...
@@ -551,6 +551,9 @@ AC_CHECK_FUNCS(fdatasync,,
[AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
])
# Windows CE doesn't have strcoll()
AC_FUNC_STRCOLL
dnl Check for non-standard system calls
AC_CHECK_FUNCS([accept4 dup3 eventfd vmsplice sched_getaffinity])
...
...
modules/access/directory.c
View file @
8d52ffe1
...
...
@@ -98,7 +98,11 @@ static int visible (const char *name)
static
int
collate
(
const
char
**
a
,
const
char
**
b
)
{
#ifdef HAVE_STRCOLL
return
strcoll
(
*
a
,
*
b
);
#else
return
strcmp
(
*
a
,
*
b
);
#endif
}
/*****************************************************************************
...
...
modules/media_library/sql_monitor.c
View file @
8d52ffe1
...
...
@@ -28,6 +28,9 @@
/** **************************************************************************
* MONITORING AND DIRECTORY SCANNING FUNCTIONS
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "sql_media_library.h"
#include "vlc_playlist.h"
...
...
@@ -190,7 +193,11 @@ int AddDirToMonitor( media_library_t *p_ml, const char *psz_dir )
static
int
Sort
(
const
char
**
a
,
const
char
**
b
)
{
#ifdef HAVE_STRCOLL
return
strcoll
(
*
a
,
*
b
);
#else
return
strcmp
(
*
a
,
*
b
);
#endif
}
/**
...
...
src/input/subtitles.c
View file @
8d52ffe1
...
...
@@ -154,7 +154,7 @@ static int compare_sub_priority( const void *a, const void *b )
if
(
p0
->
priority
<
p1
->
priority
)
return
1
;
#if
ndef UNDER_CE
#if
def HAVE_STRCOLL
return
strcoll
(
p0
->
psz_fname
,
p1
->
psz_fname
);
#else
return
strcmp
(
p0
->
psz_fname
,
p1
->
psz_fname
);
...
...
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