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:
Brian Smith 2025-05-05 13:12:42 -05:00 committed by roytam1
commit e8b3077d4f
3 changed files with 48 additions and 7 deletions

View file

@ -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