From 2de22bde0ae1de14ad2d7f098a4643e340b96dd8 Mon Sep 17 00:00:00 2001 From: Valentin Lenhart Date: Wed, 28 Oct 2020 14:13:17 +0100 Subject: [PATCH] stb_sprintf.h: stdlib.h is not needed va_arg() is in stdarg.h, which is already being included --- stb_sprintf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stb_sprintf.h b/stb_sprintf.h index a009c5d..cbe7868 100644 --- a/stb_sprintf.h +++ b/stb_sprintf.h @@ -187,7 +187,7 @@ PERFORMANCE vs MSVC 2008 32-/64-bit (GCC is even slower than MSVC): #define STBSP__ATTRIBUTE_FORMAT(fmt,va) #endif -#include // for va_list() +#include // for va_arg(), va_list() #include // size_t, ptrdiff_t #ifndef STB_SPRINTF_MIN @@ -211,8 +211,6 @@ STBSP__PUBLICDEF void STB_SPRINTF_DECORATE(set_separators)(char comma, char peri #ifdef STB_SPRINTF_IMPLEMENTATION -#include // for va_arg() - #define stbsp__uint32 unsigned int #define stbsp__int32 signed int