fix mac compile
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run

This commit is contained in:
Isaac0-dev 2025-04-30 20:51:10 +10:00
parent 7b3d51d32b
commit 5c3ef3d419
2 changed files with 5 additions and 3 deletions

View file

@ -275,10 +275,10 @@ private:
};
// - `_ItemAllocator_` should be a function of signature: `T *_ItemAllocator_(u32 size)`
// allocates buffer of size `_MaxItemSize_`, but does not edit its contents (internal size is 0)
// allocates buffer of size `_MaxItemSize_`, but does not edit its contents (internal size is 0)
// - `_ItemResize_` should be a function of signature: `void _ItemResize_(T *ptr, u32 oldSize, u32 newSize)`
// updates the contents of `ptr`, but does not allocate nor free memory
// updates the contents of `ptr`, but does not allocate nor free memory
// - `_ItemDeallocator_` should be a function of signature: `void _ItemDeallocator_(T *ptr, u32 size)`
// frees buffer of size `size`
#define DEFINE_MODS_DATA(_Name_, _Type_, _MaxPoolSize_, _MaxItemSize_, _ItemAllocator_, _ItemResize_, _ItemDeallocator_) \
static ModsData<_Type_, _MaxPoolSize_, _MaxItemSize_, typeof(_ItemAllocator_), typeof(_ItemResize_), typeof(_ItemDeallocator_)> _Name_(_ItemAllocator_, _ItemResize_, _ItemDeallocator_)
static ModsData<_Type_, _MaxPoolSize_, _MaxItemSize_, decltype(_ItemAllocator_), decltype(_ItemResize_), decltype(_ItemDeallocator_)> _Name_(_ItemAllocator_, _ItemResize_, _ItemDeallocator_)

View file

@ -149,7 +149,9 @@ static ULONG CaptureStackWalkBackTrace(CONTEXT* ctx, DWORD FramesToSkip, DWORD F
#define ARCHITECTURE_STR "32-bit"
#endif
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <signal.h>
#include <execinfo.h>