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
d0102803
Commit
d0102803
authored
Sep 30, 2008
by
Geoffroy Couprie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WinCE: more missing functions fixes
parent
07faebaf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
2 deletions
+26
-2
include/vlc_fixups.h
include/vlc_fixups.h
+8
-0
include/vlc_threads.h
include/vlc_threads.h
+1
-1
src/config/dirs.c
src/config/dirs.c
+3
-0
src/extras/libc.c
src/extras/libc.c
+9
-0
src/libvlc.c
src/libvlc.c
+1
-1
src/misc/block.c
src/misc/block.c
+4
-0
No files found.
include/vlc_fixups.h
View file @
d0102803
...
@@ -281,4 +281,12 @@ typedef void *locale_t;
...
@@ -281,4 +281,12 @@ typedef void *locale_t;
#define N_(str) gettext_noop (str)
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
#define gettext_noop(str) (str)
#ifdef UNDER_CE
static
inline
void
rewind
(
FILE
*
stream
)
{
fseek
(
stream
,
0L
,
SEEK_SET
);
clearerr
(
stream
);
}
#endif
#endif
/* !LIBVLC_FIXUPS_H */
#endif
/* !LIBVLC_FIXUPS_H */
include/vlc_threads.h
View file @
d0102803
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
*/
*/
#if defined( UNDER_CE )
#if defined( UNDER_CE )
/* WinCE API */
# include <errno.h>
/* WinCE API */
#elif defined( WIN32 )
#elif defined( WIN32 )
# include <process.h>
/* Win32 API */
# include <process.h>
/* Win32 API */
# include <errno.h>
# include <errno.h>
...
...
src/config/dirs.c
View file @
d0102803
...
@@ -82,6 +82,9 @@ static const char *GetDir( bool b_appdata, bool b_common_appdata )
...
@@ -82,6 +82,9 @@ static const char *GetDir( bool b_appdata, bool b_common_appdata )
wchar_t
wdir
[
MAX_PATH
];
wchar_t
wdir
[
MAX_PATH
];
# if defined (UNDER_CE)
# if defined (UNDER_CE)
/*There are some errors in cegcc headers*/
#undef SHGetSpecialFolderPath
BOOL
WINAPI
SHGetSpecialFolderPath
(
HWND
,
LPWSTR
,
int
,
BOOL
);
if
(
SHGetSpecialFolderPath
(
NULL
,
wdir
,
CSIDL_APPDATA
,
1
)
)
if
(
SHGetSpecialFolderPath
(
NULL
,
wdir
,
CSIDL_APPDATA
,
1
)
)
# else
# else
/* Get the "Application Data" folder for the current user */
/* Get the "Application Data" folder for the current user */
...
...
src/extras/libc.c
View file @
d0102803
...
@@ -258,7 +258,11 @@ void *vlc_wopendir( const wchar_t *wpath )
...
@@ -258,7 +258,11 @@ void *vlc_wopendir( const wchar_t *wpath )
if
(
!
p_dir
)
if
(
!
p_dir
)
return
NULL
;
return
NULL
;
p_dir
->
p_real_dir
=
NULL
;
p_dir
->
p_real_dir
=
NULL
;
# if defined(UNDER_CE)
p_dir
->
i_drives
=
NULL
;
# elif
p_dir
->
i_drives
=
GetLogicalDrives
();
p_dir
->
i_drives
=
GetLogicalDrives
();
#endif
return
(
void
*
)
p_dir
;
return
(
void
*
)
p_dir
;
}
}
...
@@ -303,6 +307,10 @@ struct _wdirent *vlc_wreaddir( void *_p_dir )
...
@@ -303,6 +307,10 @@ struct _wdirent *vlc_wreaddir( void *_p_dir )
/* Drive letters mode */
/* Drive letters mode */
i_drives
=
p_dir
->
i_drives
;
i_drives
=
p_dir
->
i_drives
;
#ifdef UNDER_CE
swprintf
(
p_dir
->
dd_dir
.
d_name
,
L"
\\
"
);
p_dir
->
dd_dir
.
d_namlen
=
wcslen
(
p_dir
->
dd_dir
.
d_name
);
#else
if
(
!
i_drives
)
if
(
!
i_drives
)
return
NULL
;
/* end */
return
NULL
;
/* end */
...
@@ -315,6 +323,7 @@ struct _wdirent *vlc_wreaddir( void *_p_dir )
...
@@ -315,6 +323,7 @@ struct _wdirent *vlc_wreaddir( void *_p_dir )
swprintf
(
p_dir
->
dd_dir
.
d_name
,
L"%c:
\\
"
,
'A'
+
i
);
swprintf
(
p_dir
->
dd_dir
.
d_name
,
L"%c:
\\
"
,
'A'
+
i
);
p_dir
->
dd_dir
.
d_namlen
=
wcslen
(
p_dir
->
dd_dir
.
d_name
);
p_dir
->
dd_dir
.
d_namlen
=
wcslen
(
p_dir
->
dd_dir
.
d_name
);
p_dir
->
i_drives
&=
~
(
1UL
<<
i
);
p_dir
->
i_drives
&=
~
(
1UL
<<
i
);
#endif
return
&
p_dir
->
dd_dir
;
return
&
p_dir
->
dd_dir
;
}
}
...
...
src/libvlc.c
View file @
d0102803
...
@@ -2060,7 +2060,7 @@ static int ConsoleWidth( void )
...
@@ -2060,7 +2060,7 @@ static int ConsoleWidth( void )
i_width
=
80
;
i_width
=
80
;
pclose
(
file
);
pclose
(
file
);
}
}
#el
se
#el
if !defined (UNDER_CE)
CONSOLE_SCREEN_BUFFER_INFO
buf
;
CONSOLE_SCREEN_BUFFER_INFO
buf
;
if
(
GetConsoleScreenBufferInfo
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
&
buf
))
if
(
GetConsoleScreenBufferInfo
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
&
buf
))
...
...
src/misc/block.c
View file @
d0102803
...
@@ -243,6 +243,10 @@ block_t *block_mmap_Alloc (void *addr, size_t length)
...
@@ -243,6 +243,10 @@ block_t *block_mmap_Alloc (void *addr, size_t length)
#ifdef WIN32
#ifdef WIN32
#ifdef UNDER_CE
#define _get_osfhandle(a) ((long) (a))
#endif
static
static
ssize_t
pread
(
int
fd
,
void
*
buf
,
size_t
count
,
off_t
offset
)
ssize_t
pread
(
int
fd
,
void
*
buf
,
size_t
count
,
off_t
offset
)
{
{
...
...
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