From 517f3ee9ec989b818fac17920d70c19753407249 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 21 Aug 2024 10:59:36 +0200 Subject: [PATCH] Include stdio.h for vsnprintf in buffer.h (#693) `vsnprintf` is defined in `stdio.h`: https://github.com/bminor/glibc/blob/734e7f91e752f44984fe42c2384c23a0290b6e56/libio/stdio.h#L389 All the examples include both `stdio.h` and `stdarg.h` when using `vsnprintf`. For whatever reason, on the emscripten target there is an error due to missing `vsnprintf` but on other targets there is no error. --- src/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/buffer.h b/src/buffer.h index 7d301e23..2acce0ed 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -2,6 +2,7 @@ #include #include +#include // vsnprintf NAMESPACE_BEGIN(NB_NAMESPACE) NAMESPACE_BEGIN(detail)