mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
18 lines
343 B
C++
18 lines
343 B
C++
#include <execinfo.h>
|
|
#include <sys/sysctl.h>
|
|
#include <dlfcn.h>
|
|
#include <mach-o/dyld.h>
|
|
|
|
#define lseek64 lseek
|
|
#define ftruncate64 ftruncate
|
|
|
|
#include "../posix/PosixCommon.cpp"
|
|
|
|
char* itoa(int value, char* str, int base)
|
|
{
|
|
if (base == 16)
|
|
sprintf(str, "%X", value);
|
|
else
|
|
sprintf(str, "%d", value);
|
|
return str;
|
|
}
|