mirror of
https://github.com/nothings/stb.git
synced 2026-01-04 11:57:47 +00:00
stb_sprintf.h: stdlib.h is not needed
va_arg() is in stdarg.h, which is already being included
This commit is contained in:
committed by
Fabian Giesen
parent
dc2aa370c0
commit
2de22bde0a
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user