c-capnproto/compiler
Joel Carlson 9053ebe6ee compiler/str.h: include stdarg.h for va_list
With some toolchains, compilation of str.c produced the following error:

compiler/str.h:56:50: error: unknown type name ‘va_list’
 int str_vaddf(struct str *v, const char *format, va_list ap) ATTR(2,0);
                                                  ^~~~~~~

One toolchain had the following in its stdarg.h:
"We deliberately do not define va_list when called from
stdio.h, because ANSI C says that stdio.h is not supposed to
define va_list."

str.c includes stdio.h, but none of the prior includes result in the
inclusion of stdarg.h. Therefore, explicitly include it in str.h to fix
the issue on toolchains following this ANSI C rule.

Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
2019-04-22 20:58:49 +01:00
..
c++.capnp compiler: update schemas from v0.5.2 2015-08-04 11:55:23 -07:00
c++.capnp.c Silence warning on unused struct parameter 2017-05-19 09:40:37 +02:00
c++.capnp.h Silence GCC unnamed union warning 2017-05-19 09:35:09 +02:00
c.capnp Add all .capnp files to make dist archive. 2017-03-26 15:23:35 +01:00
c.capnp.c Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
c.capnp.h Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
capnpc-c.c Use proper format specifiers for size_t. 2017-05-19 19:26:47 +02:00
schema-test.cpp add approprate per-file license headers 2016-02-28 12:47:42 +01:00
schema.capnp Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
schema.capnp.c Silence warning on unused struct parameter 2017-05-19 09:40:37 +02:00
schema.capnp.h Silence GCC unnamed union warning 2017-05-19 09:35:09 +02:00
str.c add approprate per-file license headers 2016-02-28 12:47:42 +01:00
str.h compiler/str.h: include stdarg.h for va_list 2019-04-22 20:58:49 +01:00
test.capnp Most .capnp files use "/c.capnp".fieldgetset. Recompile from schema files. 2017-03-26 23:40:55 +01:00
test.capnp.c Silence warning on unused struct parameter 2017-05-19 09:40:37 +02:00
test.capnp.h Silence empty struct warning 2017-05-19 09:45:01 +02:00
update-notes.md compiler: notes on updating from upstream 2015-08-04 12:04:49 -07:00