Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
f9a99530
Commit
f9a99530
authored
11 years ago
by
Pavel Pimenov
Browse files
Options
Downloads
Patches
Plain Diff
Add #ifndef MONGOOSE_NO_FILESYSTEM
parent
940b65e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mongoose.c
+2
-0
2 additions, 0 deletions
mongoose.c
with
2 additions
and
0 deletions
mongoose.c
+
2
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment