Browse Source

stb_sprintf.h: stdlib.h is not needed

va_arg() is in stdarg.h, which is already being included
Valentin Lenhart 4 years ago
parent
commit
2de22bde0a
1 changed files with 1 additions and 3 deletions
  1. 1 3
      stb_sprintf.h

+ 1 - 3
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 <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