Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
c7880afa
Commit
c7880afa
authored
Aug 22, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/extras/libc.c: Compilation fix for non-Win32 platforms.
parent
de1cb2a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
include/vlc_common.h
include/vlc_common.h
+0
-6
src/extras/libc.c
src/extras/libc.c
+13
-0
No files found.
include/vlc_common.h
View file @
c7880afa
...
...
@@ -932,15 +932,9 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
# endif
#endif
#if defined(WIN32) || defined(UNDER_CE)
VLC_EXPORT
(
void
*
,
vlc_opendir_wrapper
,
(
const
char
*
)
);
VLC_EXPORT
(
struct
dirent
*
,
vlc_readdir_wrapper
,
(
void
*
)
);
VLC_EXPORT
(
int
,
vlc_closedir_wrapper
,
(
void
*
)
);
#else
# define vlc_opendir_wrapper opendir
# define vlc_readdir_wrapper readdir
# define vlc_closedir_wrapper closedir
#endif
/* Format type specifiers for 64 bits numbers */
#if defined(__CYGWIN32__) || (!defined(WIN32) && !defined(UNDER_CE))
...
...
src/extras/libc.c
View file @
c7880afa
...
...
@@ -422,6 +422,19 @@ int vlc_closedir_wrapper( void *_p_dir )
free
(
p_dir
);
return
0
;
}
#else
void
*
vlc_opendir_wrapper
(
const
char
*
psz_path
)
{
return
(
void
*
)
opendir
(
psz_path
);
}
struct
dirent
*
vlc_readdir_wrapper
(
void
*
_p_dir
)
{
return
readdir
(
(
DIR
*
)
_p_dir
);
}
int
vlc_closedir_wrapper
(
void
*
_p_dir
)
{
return
closedir
(
(
DIR
*
)
_p_dir
);
}
#endif
/*****************************************************************************
...
...
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