Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3fe85b38
Commit
3fe85b38
authored
Feb 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: struct stat is a macro so we need to include <sys/stat.h>
parent
452cf1c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
include/vlc_fs.h
include/vlc_fs.h
+2
-0
src/win32/filesystem.c
src/win32/filesystem.c
+3
-0
No files found.
include/vlc_fs.h
View file @
3fe85b38
...
@@ -63,6 +63,8 @@ static inline void vlc_rewinddir( DIR *dir )
...
@@ -63,6 +63,8 @@ static inline void vlc_rewinddir( DIR *dir )
}
}
# undef rewinddir
# undef rewinddir
# define rewinddir vlc_rewinddir
# define rewinddir vlc_rewinddir
# include <sys/stat.h>
#endif
#endif
struct
stat
;
struct
stat
;
...
...
src/win32/filesystem.c
View file @
3fe85b38
...
@@ -243,6 +243,9 @@ int vlc_stat (const char *filename, struct stat *buf)
...
@@ -243,6 +243,9 @@ int vlc_stat (const char *filename, struct stat *buf)
if
(
wpath
==
NULL
)
if
(
wpath
==
NULL
)
return
-
1
;
return
-
1
;
static_assert
(
sizeof
(
*
buf
)
==
sizeof
(
struct
_stati64
),
"Mismatched struct stat definition."
);
int
ret
=
_wstati64
(
wpath
,
buf
);
int
ret
=
_wstati64
(
wpath
,
buf
);
free
(
wpath
);
free
(
wpath
);
return
ret
;
return
ret
;
...
...
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