Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Main
Synchronet
Commits
43f30849
Commit
43f30849
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
I guess Win32 still doesn't have stdbool.h
parent
82275147
No related branches found
No related tags found
No related merge requests found
Pipeline
#5287
failed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/rwlockwrap.c
+0
-2
0 additions, 2 deletions
src/xpdev/rwlockwrap.c
src/xpdev/rwlockwrap.h
+2
-2
2 additions, 2 deletions
src/xpdev/rwlockwrap.h
with
2 additions
and
4 deletions
src/xpdev/rwlockwrap.c
+
0
−
2
View file @
43f30849
...
...
@@ -2,8 +2,6 @@
#ifdef _WIN32
#include
"gen_defs.h"
// For windows.h
bool
rwlock_init
(
rwlock_t
*
lock
)
{
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/rwlockwrap.h
+
2
−
2
View file @
43f30849
#ifndef RWLOCKWRAP_H
#define RWLOCKWRAP_H
#include
<stdbool.h>
#if defined(__unix__)
#include
<pthread.h>
#include
<stdbool.h>
typedef
pthread_rwlock_t
rwlock_t
;
#define rwlock_init(lock) (pthread_rwlock_init(lock, NULL) == 0)
...
...
@@ -17,6 +16,7 @@ typedef pthread_rwlock_t rwlock_t;
#elif defined(_WIN32)
#include
"gen_defs.h"
// For windows.h and bool :(
#include
"threadwrap.h"
typedef
struct
{
...
...
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