mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
No Issue - Fixes for building with LLVM 19 included with FreeBSD 13.5. Fix a conflict with libc++ 19 and the old Mozilla (re)alloc macros. LLVM 18+ does not allow std::char_traits<unsigned char> so avoid it. https://bugzilla.mozilla.org/show_bug.cgi?id=1849070 Partial NSS upgrade to replace ByteString with a class. https://bugzilla.mozilla.org/show_bug.cgi?id=1851092
This commit is contained in:
parent
40e01c31e4
commit
e8b3077d4f
3 changed files with 48 additions and 7 deletions
|
|
@ -12,8 +12,22 @@
|
|||
|
||||
#include "mozilla/mozalloc.h"
|
||||
|
||||
#define malloc moz_xmalloc
|
||||
#define calloc moz_xcalloc
|
||||
#define realloc moz_xrealloc
|
||||
// extern "C" is needed for the Solaris build, while the inline
|
||||
// functions are needed for the MinGW build.
|
||||
|
||||
extern "C" inline void* malloc(size_t size)
|
||||
{
|
||||
return moz_xmalloc(size);
|
||||
}
|
||||
|
||||
extern "C" inline void* calloc(size_t nmemb, size_t size)
|
||||
{
|
||||
return moz_xcalloc(nmemb, size);
|
||||
}
|
||||
|
||||
extern "C" inline void* realloc(void *ptr, size_t size)
|
||||
{
|
||||
return moz_xrealloc(ptr, size);
|
||||
}
|
||||
|
||||
#endif // MOZ_GR_MALLOC_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue