1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
Beef/BeefySysLib/platform/darwin/DarwinCommon.cpp
2019-10-29 05:01:04 -07:00

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;
}