Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
13d2bb57
Commit
13d2bb57
authored
Nov 23, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fluidsynth: Make glib replacement functions inline to avoid unused function warnings.
parent
6d046dd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
glib.h
libs/fluidsynth/glib.h
+21
-21
No files found.
libs/fluidsynth/glib.h
View file @
13d2bb57
...
@@ -78,30 +78,30 @@ extern void g_clear_error( GError **error );
...
@@ -78,30 +78,30 @@ extern void g_clear_error( GError **error );
extern
int
g_file_test
(
const
char
*
path
,
int
test
);
extern
int
g_file_test
(
const
char
*
path
,
int
test
);
#define g_new( type, count ) calloc( (count), sizeof(type) )
#define g_new( type, count ) calloc( (count), sizeof(type) )
static
void
g_free
(
void
*
ptr
)
{
free
(
ptr
);
}
static
inline
void
g_free
(
void
*
ptr
)
{
free
(
ptr
);
}
typedef
SRWLOCK
GMutex
;
typedef
SRWLOCK
GMutex
;
static
void
g_mutex_init
(
GMutex
*
mutex
)
{}
static
inline
void
g_mutex_init
(
GMutex
*
mutex
)
{}
static
void
g_mutex_clear
(
GMutex
*
mutex
)
{}
static
inline
void
g_mutex_clear
(
GMutex
*
mutex
)
{}
static
void
g_mutex_lock
(
GMutex
*
mutex
)
{
AcquireSRWLockExclusive
(
mutex
);
}
static
inline
void
g_mutex_lock
(
GMutex
*
mutex
)
{
AcquireSRWLockExclusive
(
mutex
);
}
static
void
g_mutex_unlock
(
GMutex
*
mutex
)
{
ReleaseSRWLockExclusive
(
mutex
);
}
static
inline
void
g_mutex_unlock
(
GMutex
*
mutex
)
{
ReleaseSRWLockExclusive
(
mutex
);
}
typedef
CRITICAL_SECTION
GRecMutex
;
typedef
CRITICAL_SECTION
GRecMutex
;
static
void
g_rec_mutex_init
(
GRecMutex
*
mutex
)
{
InitializeCriticalSection
(
mutex
);
}
static
inline
void
g_rec_mutex_init
(
GRecMutex
*
mutex
)
{
InitializeCriticalSection
(
mutex
);
}
static
void
g_rec_mutex_clear
(
GRecMutex
*
mutex
)
{
DeleteCriticalSection
(
mutex
);
}
static
inline
void
g_rec_mutex_clear
(
GRecMutex
*
mutex
)
{
DeleteCriticalSection
(
mutex
);
}
static
void
g_rec_mutex_lock
(
GRecMutex
*
mutex
)
{
EnterCriticalSection
(
mutex
);
}
static
inline
void
g_rec_mutex_lock
(
GRecMutex
*
mutex
)
{
EnterCriticalSection
(
mutex
);
}
static
void
g_rec_mutex_unlock
(
GRecMutex
*
mutex
)
{
LeaveCriticalSection
(
mutex
);
}
static
inline
void
g_rec_mutex_unlock
(
GRecMutex
*
mutex
)
{
LeaveCriticalSection
(
mutex
);
}
typedef
CONDITION_VARIABLE
GCond
;
typedef
CONDITION_VARIABLE
GCond
;
static
void
g_cond_init
(
GCond
*
cond
)
{}
static
inline
void
g_cond_init
(
GCond
*
cond
)
{}
static
void
g_cond_clear
(
GCond
*
cond
)
{}
static
inline
void
g_cond_clear
(
GCond
*
cond
)
{}
static
void
g_cond_signal
(
GCond
*
cond
)
{
WakeConditionVariable
(
cond
);
}
static
inline
void
g_cond_signal
(
GCond
*
cond
)
{
WakeConditionVariable
(
cond
);
}
static
void
g_cond_broadcast
(
GCond
*
cond
)
{
WakeAllConditionVariable
(
cond
);
}
static
inline
void
g_cond_broadcast
(
GCond
*
cond
)
{
WakeAllConditionVariable
(
cond
);
}
static
void
g_cond_wait
(
GCond
*
cond
,
GMutex
*
mutex
)
{
SleepConditionVariableSRW
(
cond
,
mutex
,
INFINITE
,
0
);
}
static
inline
void
g_cond_wait
(
GCond
*
cond
,
GMutex
*
mutex
)
{
SleepConditionVariableSRW
(
cond
,
mutex
,
INFINITE
,
0
);
}
static
void
g_atomic_int_inc
(
int
*
ptr
)
{
InterlockedIncrement
(
(
LONG
*
)
ptr
);
}
static
inline
void
g_atomic_int_inc
(
int
*
ptr
)
{
InterlockedIncrement
(
(
LONG
*
)
ptr
);
}
static
int
g_atomic_int_add
(
int
*
ptr
,
int
val
)
{
return
InterlockedAdd
(
(
LONG
*
)
ptr
,
val
)
-
1
;
}
static
in
line
in
t
g_atomic_int_add
(
int
*
ptr
,
int
val
)
{
return
InterlockedAdd
(
(
LONG
*
)
ptr
,
val
)
-
1
;
}
static
int
g_atomic_int_get
(
int
*
ptr
)
{
return
ReadAcquire
(
(
LONG
*
)
ptr
);
}
static
in
line
in
t
g_atomic_int_get
(
int
*
ptr
)
{
return
ReadAcquire
(
(
LONG
*
)
ptr
);
}
static
void
g_atomic_int_set
(
int
*
ptr
,
int
val
)
{
InterlockedExchange
(
(
LONG
*
)
ptr
,
val
);
}
static
inline
void
g_atomic_int_set
(
int
*
ptr
,
int
val
)
{
InterlockedExchange
(
(
LONG
*
)
ptr
,
val
);
}
static
int
g_atomic_int_dec_and_test
(
int
*
ptr
,
int
val
)
{
return
!
InterlockedAdd
(
(
LONG
*
)
ptr
,
-
val
);
}
static
in
line
in
t
g_atomic_int_dec_and_test
(
int
*
ptr
,
int
val
)
{
return
!
InterlockedAdd
(
(
LONG
*
)
ptr
,
-
val
);
}
static
int
g_atomic_int_compare_and_exchange
(
int
*
ptr
,
int
cmp
,
int
val
)
{
return
InterlockedCompareExchange
(
(
LONG
*
)
ptr
,
val
,
cmp
)
==
cmp
;
}
static
in
line
in
t
g_atomic_int_compare_and_exchange
(
int
*
ptr
,
int
cmp
,
int
val
)
{
return
InterlockedCompareExchange
(
(
LONG
*
)
ptr
,
val
,
cmp
)
==
cmp
;
}
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