Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 1 | From 7dfa672dac958bdbc7703ab0920e167eaa126754 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sergei Trofimovich <slyich@gmail.com> |
| 3 | Date: Mon, 16 Jan 2023 19:49:53 +0000 |
| 4 | Subject: [PATCH] test/threads/hb-subset-threads.cc: add missing <cstdio> include |
| 5 | |
| 6 | This week's `gcc-13` snapshot cleaned further up it's standard headers |
| 7 | and exposed missing declaration as a build failure: |
| 8 | |
| 9 | ../test/threads/hb-subset-threads.cc: In function 'void test_operation(operation_t, const char*, const test_input_t&)': |
| 10 | ../test/threads/hb-subset-threads.cc:127:3: error: 'printf' was not declared in this scope |
| 11 | |
| 12 | ../test/threads/hb-subset-threads.cc: In function 'int main(int, char**)': |
| 13 | ../test/threads/hb-subset-threads.cc:157:19: error: 'atoi' was not declared in this scope |
| 14 | |
| 15 | Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/7dfa672dac958bdbc7703ab0920e167eaa126754] |
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 17 | --- |
| 18 | test/threads/hb-subset-threads.cc | 2 ++ |
| 19 | 1 file changed, 2 insertions(+) |
| 20 | |
| 21 | diff --git a/test/threads/hb-subset-threads.cc b/test/threads/hb-subset-threads.cc |
| 22 | index 9d86d8d51..f0e4b7e2a 100644 |
| 23 | --- a/test/threads/hb-subset-threads.cc |
| 24 | +++ b/test/threads/hb-subset-threads.cc |
| 25 | @@ -1,4 +1,6 @@ |
| 26 | #include <cassert> |
| 27 | +#include <cstdio> |
| 28 | +#include <cstdlib> |
| 29 | #include <cstring> |
| 30 | #include <thread> |
| 31 | #include <condition_variable> |
| 32 | -- |
| 33 | 2.39.1 |
| 34 | |