|
@@ -1858,13 +1858,15 @@ const char* ImStrSkipBlank(const char* str)
|
|
|
// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are
|
|
|
// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.)
|
|
|
#ifdef IMGUI_USE_STB_SPRINTF
|
|
|
+#ifndef IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION
|
|
|
#define STB_SPRINTF_IMPLEMENTATION
|
|
|
+#endif
|
|
|
#ifdef IMGUI_STB_SPRINTF_FILENAME
|
|
|
#include IMGUI_STB_SPRINTF_FILENAME
|
|
|
#else
|
|
|
#include "stb_sprintf.h"
|
|
|
#endif
|
|
|
-#endif
|
|
|
+#endif // #ifdef IMGUI_USE_STB_SPRINTF
|
|
|
|
|
|
#if defined(_MSC_VER) && !defined(vsnprintf)
|
|
|
#define vsnprintf _vsnprintf
|