[x265] [RESEND 2 1/2] source/dynamicHDR10/json11/json11.cpp: add missing <stdint.h>

Sergei Trofimovich slyich at gmail.com
Fri Sep 6 08:02:03 UTC 2024


Without the change build fails on upcoming `gcc-15` as:

    source/dynamicHDR10/json11/json11.cpp: In function 'void json11::dump(const std::string&, std::string&)':
    source/dynamicHDR10/json11/json11.cpp:101:32: error: 'uint8_t' does not name a type
      101 |         } else if (static_cast<uint8_t>(ch) <= 0x1f) {
          |                                ^~~~~~~
---
 source/dynamicHDR10/json11/json11.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/source/dynamicHDR10/json11/json11.cpp b/source/dynamicHDR10/json11/json11.cpp
index 762577735..059a38db3 100644
--- a/source/dynamicHDR10/json11/json11.cpp
+++ b/source/dynamicHDR10/json11/json11.cpp
@@ -25,6 +25,7 @@
 #include <cstdlib>
 #include <cstdio>
 #include <limits>
+#include <stdint.h>
 
 #if _MSC_VER
 #pragma warning(disable: 4510) //const member cannot be default initialized
-- 
2.46.0



More information about the x265-devel mailing list