Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 1 | From 2025b53de6b3d97285d7c5f80497493007c586c3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 30 Jan 2023 11:27:07 -0800 |
| 4 | Subject: [PATCH] Fix build with gcc 13 by including <cstdint> |
| 5 | |
| 6 | gcc 13 moved some includes around and as a result <cstdint> is |
| 7 | no longer transitively included [1]. Explicitly include it for |
| 8 | int32_t. |
| 9 | |
| 10 | [1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes |
| 11 | |
| 12 | Upstream-Status: Submitted [https://github.com/tesseract-ocr/tesseract/pull/4009] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | src/ccutil/params.h | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/src/ccutil/params.h b/src/ccutil/params.h |
| 19 | index f514d870..0f3f8743 100644 |
| 20 | --- a/src/ccutil/params.h |
| 21 | +++ b/src/ccutil/params.h |
| 22 | @@ -21,6 +21,7 @@ |
| 23 | |
| 24 | #include <tesseract/export.h> // for TESS_API |
| 25 | |
| 26 | +#include <cstdint> |
| 27 | #include <cstdio> |
| 28 | #include <cstring> |
| 29 | #include <string> |
| 30 | -- |
| 31 | 2.39.1 |
| 32 | |