mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
e72f8a3a81
140 changed files with 1117 additions and 466 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