icculus / mojoAL

An SDL2-based implementation of OpenAL in a single C file.
https://icculus.org/mojoAL/
zlib License
158 stars 21 forks source link

Errors when building LOVE Engine 11.5 #25

Open absolutelynothinghere opened 10 months ago

absolutelynothinghere commented 10 months ago

While compiling LOVE Engine 11.5 with mojoAL I got the following errors:

In file included from modules/audio/openal/Audio.cpp:21:
In file included from modules/audio/openal/Audio.h:38:
In file included from modules/audio/openal/Source.h:32:
In file included from modules/audio/openal/Filter.h:37:
/usr/include/AL/alc.h:234:36: error: expected ')'
typedef void          (AL_APIENTRY *LPALCTRACEDEVICELABEL)(ALCdevice *device, const ALCchar *str);
                                   ^
/usr/include/AL/alc.h:234:23: note: to match this '('
typedef void          (AL_APIENTRY *LPALCTRACEDEVICELABEL)(ALCdevice *device, const ALCchar *str);
                      ^
/usr/include/AL/alc.h:235:36: error: expected ')'
typedef void          (AL_APIENTRY *LPALCTRACECONTEXTLABEL)(ALCcontext *ctx, const ALCchar *str);
                                   ^
/usr/include/AL/alc.h:235:23: note: to match this '('
typedef void          (AL_APIENTRY *LPALCTRACECONTEXTLABEL)(ALCcontext *ctx, const ALCchar *str);
                      ^
/usr/include/AL/alc.h:235:24: error: typedef redefinition with different types ('void (ALCcontext *, const ALCchar *)' (aka 'void (ALCcontext_struct *, const char *)') vs 'void (ALCdevice *, const ALCchar *)' (aka 'void (ALCdevice_struct *, const char *)'))
typedef void          (AL_APIENTRY *LPALCTRACECONTEXTLABEL)(ALCcontext *ctx, const ALCchar *str);
                       ^
/usr/include/AL/alc.h:234:24: note: previous definition is here
typedef void          (AL_APIENTRY *LPALCTRACEDEVICELABEL)(ALCdevice *device, const ALCchar *str);
                       ^
3 errors generated.

I'm using Zig CC/C++ (Clang wrapper) as my compiler.