Skip to content

Commit

Permalink
fix: Add missing <cstdint> includes (shaka-project#1306)
Browse files Browse the repository at this point in the history
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 shaka-project#1305
  • Loading branch information
modernletter authored Nov 30, 2023
1 parent ac59b9e commit ba5c771
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Alen Vrecko <alen.vrecko@gmail.com>
Amazon Music <*@amazon.com>
Anders Hasselqvist <anders.hasselqvist@gmail.com>
Audible <*@audible.com>
Cyfrowy Polsat SA <*@cyfrowypolsat.pl>
Chun-da Chen <capitalm.c@gmail.com>
Daniel Cantarín <canta@canta.com.ar>
Dolby Laboratories <*@dolby.com>
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Kongqun Yang <kqyang@google.com>
Leandro Moreira <leandro.ribeiro.moreira@gmail.com>
Leo Law <leoltlaw.gh@gmail.com>
Marcus Spangenberg <marcus.spangenberg@eyevinn.se>
Michal Wierzbicki <mwierzbicki1@cyfrowypolsat.pl>
Ole Andre Birkedal <o.birkedal@sportradar.com>
Piotr Srebrny <srebrny.piotr@gmail.com>
Qingquan Wang <wangqq1103@gmail.com>
Expand Down
1 change: 1 addition & 0 deletions packager/hls/base/tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef PACKAGER_HLS_BASE_TAG_H_
#define PACKAGER_HLS_BASE_TAG_H_

#include <cstdint>
#include <string>

namespace shaka {
Expand Down
1 change: 1 addition & 0 deletions packager/hls/public/hls_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
#define PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_

#include <cstdint>
#include <string>

namespace shaka {
Expand Down
1 change: 1 addition & 0 deletions packager/media/base/buffer_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef PACKAGER_MEDIA_BASE_BUFFER_WRITER_H_
#define PACKAGER_MEDIA_BASE_BUFFER_WRITER_H_

#include <cstdint>
#include <vector>

#include "packager/base/macros.h"
Expand Down
1 change: 1 addition & 0 deletions packager/media/base/fourccs.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef PACKAGER_MEDIA_BASE_FOURCCS_H_
#define PACKAGER_MEDIA_BASE_FOURCCS_H_

#include <cstdint>
#include <string>

namespace shaka {
Expand Down
1 change: 1 addition & 0 deletions packager/media/base/id3_tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef PACKAGER_MEDIA_BASE_ID3_TAG_H_
#define PACKAGER_MEDIA_BASE_ID3_TAG_H_

#include <cstdint>
#include <string>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions packager/media/base/id3_tag_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

#include <cstdint>

#include "packager/media/base/id3_tag.h"

#include <gmock/gmock.h>
Expand Down
1 change: 1 addition & 0 deletions packager/packager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef PACKAGER_PACKAGER_H_
#define PACKAGER_PACKAGER_H_

#include <cstdint>
#include <memory>
#include <string>
#include <vector>
Expand Down

0 comments on commit ba5c771

Please sign in to comment.