Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
7267fc75
Commit
7267fc75
authored
Nov 29, 2016
by
Alexander Alashkin
Committed by
Cesanta Bot
Nov 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mg_stat
PUBLISHED_FROM=e6fb19c5256b6d43359f21b325e16b415152f26f
parent
ea7d6906
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
mongoose.c
mongoose.c
+1
-1
mongoose.h
mongoose.h
+0
-4
No files found.
mongoose.c
View file @
7267fc75
...
...
@@ -9142,7 +9142,7 @@ int mg_stat(const char *path, cs_stat_t *st) {
wchar_t
wpath
[
MAX_PATH_SIZE
];
to_wchar
(
path
,
wpath
,
ARRAY_SIZE
(
wpath
));
DBG
((
"[%ls] -> %d"
,
wpath
,
_wstati64
(
wpath
,
st
)));
return
_wstati64
(
wpath
,
(
struct
_stati64
*
)
st
);
return
_wstati64
(
wpath
,
st
);
#else
return
stat
(
path
,
st
);
#endif
...
...
mongoose.h
View file @
7267fc75
...
...
@@ -248,11 +248,7 @@ typedef uint32_t in_addr_t;
#define INT64_FMT "I64d"
#define INT64_X_FMT "I64x"
#define SIZE_T_FMT "Iu"
#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
typedef
struct
stat
cs_stat_t
;
#else
typedef
struct
_stati64
cs_stat_t
;
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
#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