util: Convert util/u_printf.cpp to util/u_printf.c

By doing this to remove the need of C++ runtime when not using llvmpipe

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15659>
This commit is contained in:
Yonggang Luo
2022-03-30 06:54:45 +08:00
committed by Marge Bot
parent 1dca31cda6
commit 6d263ff5a3
4 changed files with 25 additions and 31 deletions

View File

@@ -26,12 +26,6 @@
#include <stddef.h>
#ifdef __cplusplus
#include <string>
/* find next valid printf specifier in a C++ std::string */
size_t util_printf_next_spec_pos(const std::string &s, size_t pos);
extern "C" {
#endif