Respect IMGUI_USE_STB_SPRINTF

This commit is contained in:
ryuukk 2025-04-15 17:31:18 +02:00 committed by GitHub
parent d3bb3336f5
commit 667006544a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,14 @@ Index of this file:
#include <ctype.h> // toupper
#include <limits.h> // INT_MIN, INT_MAX
#include <math.h> // sqrtf, powf, cosf, sinf, floorf, ceilf
#ifdef IMGUI_USE_STB_SPRINTF
#include "stb_sprintf.h"
#define sprintf stbsp_sprintf
#define snprintf stbsp_snprintf
#define vsnprintf stbsp_vsnprintf
#else
#include <stdio.h> // vsnprintf, sscanf, printf
#endif
#include <stdlib.h> // NULL, malloc, free, atoi
#include <stdint.h> // intptr_t
#if !defined(_MSC_VER) || _MSC_VER >= 1800