1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Prefix for STB symbols

This commit is contained in:
Brian Fiete 2021-06-28 05:46:13 -07:00
parent bcdf652b99
commit c4bb50b340

View file

@ -7,6 +7,7 @@
#include "platform/PlatformHelper.h"
#ifndef BF_SMALL
#define STB_SPRINTF_DECORATE(name) BF_stbsp_##name
#define STB_SPRINTF_IMPLEMENTATION
#include "third_party/stb/stb_sprintf.h"
#endif
@ -811,7 +812,7 @@ String Beefy::vformat(const char* fmt, va_list argPtr)
{
String str;
char buf[STB_SPRINTF_MIN];
stbsp_vsprintfcb(StbspCallback, (void*)&str, buf, fmt, argPtr);
BF_stbsp_vsprintfcb(StbspCallback, (void*)&str, buf, fmt, argPtr);
return str;
}
#endif