Skip to content

Commit

Permalink
fix: Add missing <cstdint> includes (#1305)
Browse files Browse the repository at this point in the history
GCC version 13 needs <cstdint> to be explicitly included to
provide fixed bits integer types. Some files using it inludes
<stdint.h>, this commit adds <cstdint> inclusion to the
missing ones and it's needed to compile project on GCC 13.

Source: https://gcc.gnu.org/gcc-13/porting_to.html
  • Loading branch information
modernletter committed Nov 28, 2023
1 parent a698870 commit 1f08909
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
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 1f08909

Please sign in to comment.