File test_util.h-use-cstdint-instead-of-stdint-h.patch of Package libwebm
From 3d554568ced97f0b7adeb132188190a83b061754 Mon Sep 17 00:00:00 2001
From: James Zern <jzern@google.com>
Date: Tue, 27 Jun 2023 17:14:53 -0700
Subject: [PATCH] test_util.h: use <cstdint> instead of <stdint.h>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The types used in this file are std:: qualified.
Fixes compile errors with gcc-13:
testing/test_util.cc:8:
testing/test_util.h:35:12: error: ‘uint64_t’ in namespace ‘std’ does not
name a type; did you mean ‘wint_t’?
35 | const std::uint64_t kOpusCodecDelay = 6500000;
Bug: webm:1808
Change-Id: I7584a9e88cd46677d78bdf28c3e9298a67b74c61
---
testing/test_util.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/testing/test_util.h b/testing/test_util.h
index 5f85ec74e..f50d25965 100644
--- a/testing/test_util.h
+++ b/testing/test_util.h
@@ -8,9 +8,8 @@
#ifndef LIBWEBM_TESTING_TEST_UTIL_H_
#define LIBWEBM_TESTING_TEST_UTIL_H_
-#include <stdint.h>
-
#include <cstddef>
+#include <cstdint>
#include <string>
namespace mkvparser {
@@ -85,4 +84,4 @@ bool ParseMkvFileReleaseParser(const std::string& webm_file,
} // namespace test
-#endif // LIBWEBM_TESTING_TEST_UTIL_H_
\ No newline at end of file
+#endif // LIBWEBM_TESTING_TEST_UTIL_H_