From: Johannes W. <ja...@mo...> - 2012-05-23 20:54:24
|
For me this fixes: waveout.c:283: warning: implicit declaration of function 'snprintf' But for the reporter, the warning is an error (possibly newer version of toolchain?): waveout.c:283:3: error: implicit declaration of function 'snprintf' The <stdio.h> header is included after the <windows.h> header, as suggested e.g. here: http://en.wikibooks.org/wiki/Windows_Programming/windows.h Reported-by: Semen <sem...@gm...> --- waveout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/waveout.c b/waveout.c index 8813c3f..43bf20e 100644 --- a/waveout.c +++ b/waveout.c @@ -27,6 +27,7 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <mmsystem.h> +#include <stdio.h> static HWAVEOUT wave_out; static sample_format_t waveout_sf; -- 1.7.10 |