fix: Add missing <cstdint> includes (#1306)

CC version 13 needs `<cstdint>` to be explicitly included to
provide fixed bits integer types.

Some files using it inludes `<stdint.h>`, some are missing direct or
undirect inclusion. This PR adds `<cstdint>` inclusion to the
minimal set of files, allowing compilation on GCC 13.

Closes #1305
This commit is contained in:
modernletter 2023-11-30 07:51:37 +01:00 committed by GitHub
parent ac59b9ebc9
commit ba5c77155a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,7 @@ Alen Vrecko <alen.vrecko@gmail.com>
Amazon Music <*@amazon.com> Amazon Music <*@amazon.com>
Anders Hasselqvist <anders.hasselqvist@gmail.com> Anders Hasselqvist <anders.hasselqvist@gmail.com>
Audible <*@audible.com> Audible <*@audible.com>
Cyfrowy Polsat SA <*@cyfrowypolsat.pl>
Chun-da Chen <capitalm.c@gmail.com> Chun-da Chen <capitalm.c@gmail.com>
Daniel Cantarín <canta@canta.com.ar> Daniel Cantarín <canta@canta.com.ar>
Dolby Laboratories <*@dolby.com> Dolby Laboratories <*@dolby.com>

View File

@ -40,6 +40,7 @@ Kongqun Yang <kqyang@google.com>
Leandro Moreira <leandro.ribeiro.moreira@gmail.com> Leandro Moreira <leandro.ribeiro.moreira@gmail.com>
Leo Law <leoltlaw.gh@gmail.com> Leo Law <leoltlaw.gh@gmail.com>
Marcus Spangenberg <marcus.spangenberg@eyevinn.se> Marcus Spangenberg <marcus.spangenberg@eyevinn.se>
Michal Wierzbicki <mwierzbicki1@cyfrowypolsat.pl>
Ole Andre Birkedal <o.birkedal@sportradar.com> Ole Andre Birkedal <o.birkedal@sportradar.com>
Piotr Srebrny <srebrny.piotr@gmail.com> Piotr Srebrny <srebrny.piotr@gmail.com>
Qingquan Wang <wangqq1103@gmail.com> Qingquan Wang <wangqq1103@gmail.com>

View File

@ -7,6 +7,7 @@
#ifndef PACKAGER_HLS_BASE_TAG_H_ #ifndef PACKAGER_HLS_BASE_TAG_H_
#define PACKAGER_HLS_BASE_TAG_H_ #define PACKAGER_HLS_BASE_TAG_H_
#include <cstdint>
#include <string> #include <string>
namespace shaka { namespace shaka {

View File

@ -7,6 +7,7 @@
#ifndef PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_ #ifndef PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
#define PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_ #define PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
#include <cstdint>
#include <string> #include <string>
namespace shaka { namespace shaka {

View File

@ -7,6 +7,7 @@
#ifndef PACKAGER_MEDIA_BASE_BUFFER_WRITER_H_ #ifndef PACKAGER_MEDIA_BASE_BUFFER_WRITER_H_
#define PACKAGER_MEDIA_BASE_BUFFER_WRITER_H_ #define PACKAGER_MEDIA_BASE_BUFFER_WRITER_H_
#include <cstdint>
#include <vector> #include <vector>
#include "packager/base/macros.h" #include "packager/base/macros.h"

View File

@ -5,6 +5,7 @@
#ifndef PACKAGER_MEDIA_BASE_FOURCCS_H_ #ifndef PACKAGER_MEDIA_BASE_FOURCCS_H_
#define PACKAGER_MEDIA_BASE_FOURCCS_H_ #define PACKAGER_MEDIA_BASE_FOURCCS_H_
#include <cstdint>
#include <string> #include <string>
namespace shaka { namespace shaka {

View File

@ -7,6 +7,7 @@
#ifndef PACKAGER_MEDIA_BASE_ID3_TAG_H_ #ifndef PACKAGER_MEDIA_BASE_ID3_TAG_H_
#define PACKAGER_MEDIA_BASE_ID3_TAG_H_ #define PACKAGER_MEDIA_BASE_ID3_TAG_H_
#include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -4,6 +4,8 @@
// license that can be found in the LICENSE file or at // license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd // https://developers.google.com/open-source/licenses/bsd
#include <cstdint>
#include "packager/media/base/id3_tag.h" #include "packager/media/base/id3_tag.h"
#include <gmock/gmock.h> #include <gmock/gmock.h>

View File

@ -7,6 +7,7 @@
#ifndef PACKAGER_PACKAGER_H_ #ifndef PACKAGER_PACKAGER_H_
#define PACKAGER_PACKAGER_H_ #define PACKAGER_PACKAGER_H_
#include <cstdint>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector> #include <vector>