From 09af42a056e71dbaee4be24eb124115db04e2c77 Mon Sep 17 00:00:00 2001 From: Paul Eggert <eggert@cs.ucla.edu> Date: Tue, 21 May 2024 23:32:14 -0700 Subject: [PATCH] c-strtod: include <stdio.h> * lib/c-strtod.c: Include <stdio.h>, since we call sprintf. Problem found by Oracle Developer Studio 12.6 on Solaris 10. --- ChangeLog | 6 ++++++ lib/c-strtod.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0a060a444b..ddc6b6bfad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-05-21 Paul Eggert <eggert@cs.ucla.edu> + + c-strtod: include <stdio.h> + * lib/c-strtod.c: Include <stdio.h>, since we call sprintf. + Problem found by Oracle Developer Studio 12.6 on Solaris 10. + 2024-05-20 Bruno Haible <bruno@clisp.org> vasnprintf: Don't abort for pseudo-denormal arguments on macOS 12. diff --git a/lib/c-strtod.c b/lib/c-strtod.c index 0a22eed175..d7e43ac31b 100644 --- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -23,6 +23,7 @@ #include <errno.h> #include <locale.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> -- 2.39.5