Skip to content

Commit

Permalink
Use SDL_INLINE instead of reimplementing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 27, 2019
1 parent 8837b8c commit 666dbf8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mojoal.c
Expand Up @@ -13,9 +13,6 @@
#ifdef _MSC_VER
#define AL_API __declspec(dllexport)
#define ALC_API __declspec(dllexport)
#if !defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif
#endif

#include "AL/al.h"
Expand Down Expand Up @@ -1887,7 +1884,7 @@ static ALCcontext *_alcCreateContext(ALCdevice *device, const ALCint* attrlist)
ENTRYPOINT(ALCcontext *,alcCreateContext,(ALCdevice *device, const ALCint* attrlist),(device,attrlist))


static inline ALCcontext *get_current_context(void)
static SDL_INLINE ALCcontext *get_current_context(void)
{
return (ALCcontext *) SDL_AtomicGetPtr(&current_context);
}
Expand Down

0 comments on commit 666dbf8

Please sign in to comment.