stb_sprintf.h: stdlib.h is not needed

va_arg() is in stdarg.h, which is already being included
This commit is contained in:
Valentin Lenhart 2020-10-28 14:13:17 +01:00 committed by Fabian Giesen
parent dc2aa370c0
commit 2de22bde0a
1 changed files with 1 additions and 3 deletions

View File

@ -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 <stdarg.h> // for va_list()
#include <stdarg.h> // for va_arg(), va_list()
#include <stddef.h> // 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 <stdlib.h> // for va_arg()
#define stbsp__uint32 unsigned int
#define stbsp__int32 signed int