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
f9a99530
Commit
f9a99530
authored
Feb 07, 2014
by
Pavel Pimenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add #ifndef MONGOOSE_NO_FILESYSTEM
parent
940b65e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mongoose.c
mongoose.c
+2
-0
No files found.
mongoose.c
View file @
f9a99530
...
@@ -443,6 +443,7 @@ void *mg_start_thread(void *(*f)(void *), void *p) {
...
@@ -443,6 +443,7 @@ void *mg_start_thread(void *(*f)(void *), void *p) {
#endif // MONGOOSE_NO_THREADS
#endif // MONGOOSE_NO_THREADS
#ifdef _WIN32
#ifdef _WIN32
#ifndef MONGOOSE_NO_FILESYSTEM
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
// wbuf and wbuf_len is a target buffer and its length.
// wbuf and wbuf_len is a target buffer and its length.
static
void
to_wchar
(
const
char
*
path
,
wchar_t
*
wbuf
,
size_t
wbuf_len
)
{
static
void
to_wchar
(
const
char
*
path
,
wchar_t
*
wbuf
,
size_t
wbuf_len
)
{
...
@@ -487,6 +488,7 @@ static int mg_open(const char *path, int flag) {
...
@@ -487,6 +488,7 @@ static int mg_open(const char *path, int flag) {
return
_wopen
(
wpath
,
flag
);
return
_wopen
(
wpath
,
flag
);
}
}
#endif
#endif
#endif // MONGOOSE_NO_FILESYSTEM
static
void
set_close_on_exec
(
int
fd
)
{
static
void
set_close_on_exec
(
int
fd
)
{
#ifdef _WIN32
#ifdef _WIN32
...
...
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