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
08708435
Commit
08708435
authored
12 years ago
by
KIU Shueng Chuan
Browse files
Options
Downloads
Patches
Plain Diff
avoid defining macros already present on mingw32
parent
1c6036c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.c
+7
-0
7 additions, 0 deletions
main.c
mongoose.c
+3
-0
3 additions, 0 deletions
mongoose.c
with
10 additions
and
0 deletions
main.c
+
7
−
0
View file @
08708435
...
@@ -41,8 +41,15 @@
...
@@ -41,8 +41,15 @@
#include
<windows.h>
#include
<windows.h>
#include
<winsvc.h>
#include
<winsvc.h>
#include
<shlobj.h>
#include
<shlobj.h>
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#define PATH_MAX MAX_PATH
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) ((x) & _S_IFDIR)
#define S_ISDIR(x) ((x) & _S_IFDIR)
#endif
#define DIRSEP '\\'
#define DIRSEP '\\'
#define snprintf _snprintf
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define vsnprintf _vsnprintf
...
...
This diff is collapsed.
Click to expand it.
mongoose.c
+
3
−
0
View file @
08708435
...
@@ -139,7 +139,10 @@ typedef long off_t;
...
@@ -139,7 +139,10 @@ typedef long off_t;
#define flockfile(x) EnterCriticalSection(&global_log_file_lock)
#define flockfile(x) EnterCriticalSection(&global_log_file_lock)
#define funlockfile(x) LeaveCriticalSection(&global_log_file_lock)
#define funlockfile(x) LeaveCriticalSection(&global_log_file_lock)
#define sleep(x) Sleep((x) * 1000)
#define sleep(x) Sleep((x) * 1000)
#if !defined(va_copy)
#define va_copy(x, y) x = y
#define va_copy(x, y) x = y
#endif // !va_copy MINGW #defines va_copy
#if !defined(fileno)
#if !defined(fileno)
#define fileno(x) _fileno(x)
#define fileno(x) _fileno(x)
...
...
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