mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 05:02:11 +02:00
update OpenAL-Soft to 1.24.3.
This commit is contained in:
@@ -28,6 +28,24 @@
|
||||
#define NOINLINE
|
||||
#endif
|
||||
|
||||
#if defined(__MINGW32__) && defined(__i386__)
|
||||
/* 32-bit MinGW targets have a bug where __STDCPP_DEFAULT_NEW_ALIGNMENT__
|
||||
* reports 16, despite the default operator new calling standard malloc which
|
||||
* only guarantees 8-byte alignment. As a result, structs that need and specify
|
||||
* 16-byte alignment only get 8-byte alignment. Explicitly specifying 32-byte
|
||||
* alignment forces the over-aligned operator new to be called, giving the
|
||||
* correct (if larger than necessary) alignment.
|
||||
*
|
||||
* Technically this bug affects 32-bit GCC more generally, but typically only
|
||||
* with fairly old glibc versions as newer versions do guarantee the 16-byte
|
||||
* alignment as specified. MinGW is reliant on msvcrt.dll's malloc however,
|
||||
* which can't be updated to give that guarantee.
|
||||
*/
|
||||
#define SIMDALIGN alignas(32)
|
||||
#else
|
||||
#define SIMDALIGN
|
||||
#endif
|
||||
|
||||
/* Unlike the likely attribute, ASSUME requires the condition to be true or
|
||||
* else it invokes undefined behavior. It's essentially an assert without
|
||||
* actually checking the condition at run-time, allowing for stronger
|
||||
@@ -56,6 +74,12 @@
|
||||
#define UNLIKELY
|
||||
#endif
|
||||
|
||||
#if !defined(_WIN32) && HAS_ATTRIBUTE(gnu::visibility)
|
||||
#define DECL_HIDDEN [[gnu::visibility("hidden")]]
|
||||
#else
|
||||
#define DECL_HIDDEN
|
||||
#endif
|
||||
|
||||
namespace al {
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user