vsprintf: Include stdarg for va_list

vsprintf.h doesn't include the stdarg.h file, which means that it relies on
the files that include vsprintf.h to include stdarg.h as well.

Add an explicit include to avoid build errors when simply including that
file.

Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Maxime Ripard 2016-07-05 10:26:36 +02:00 committed by Alexandre Bard
parent bcac8e2fe8
commit 05fb87873d
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@
#ifndef __VSPRINTF_H #ifndef __VSPRINTF_H
#define __VSPRINTF_H #define __VSPRINTF_H
#include <stdarg.h>
ulong simple_strtoul(const char *cp, char **endp, unsigned int base); ulong simple_strtoul(const char *cp, char **endp, unsigned int base);
/** /**