From ddf521eddce2552ca7fdb3ba3255cf8f224489d4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 2 Nov 2013 12:05:02 -0700 Subject: Make LockContext and UnlockContext inline again --- OpenAL32/Include/alMain.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index de6f2613..dbc184af 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -512,8 +512,11 @@ void ALCdevice_Lock(ALCdevice *device); void ALCdevice_Unlock(ALCdevice *device); ALint64 ALCdevice_GetLatency(ALCdevice *device); -void LockContext(ALCcontext *context); -void UnlockContext(ALCcontext *context); +static inline void LockContext(ALCcontext *context) +{ ALCdevice_Lock(context->Device); } + +static inline void UnlockContext(ALCcontext *context) +{ ALCdevice_Unlock(context->Device); } void *al_malloc(size_t alignment, size_t size); -- cgit v1.2.3