Add missing include to libwebm_utils.h.
Was missing cstdint and breaking builds on less forgiving target systems. Also, make std namespace usage consistent. Change-Id: I961b3ad66f8650fdebbb76a957c914c1b06e2de5
This commit is contained in:
parent
421874a4b5
commit
9b89187db0
@ -8,6 +8,7 @@
|
|||||||
#ifndef LIBWEBM_COMMON_LIBWEBM_UTILS_H_
|
#ifndef LIBWEBM_COMMON_LIBWEBM_UTILS_H_
|
||||||
#define LIBWEBM_COMMON_LIBWEBM_UTILS_H_
|
#define LIBWEBM_COMMON_LIBWEBM_UTILS_H_
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -16,13 +17,13 @@ namespace libwebm {
|
|||||||
|
|
||||||
// fclose functor for wrapping FILE in std::unique_ptr.
|
// fclose functor for wrapping FILE in std::unique_ptr.
|
||||||
struct FILEDeleter {
|
struct FILEDeleter {
|
||||||
int operator()(FILE* f) {
|
int operator()(std::FILE* f) {
|
||||||
if (f != nullptr)
|
if (f != nullptr)
|
||||||
return fclose(f);
|
return fclose(f);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
typedef std::unique_ptr<FILE, FILEDeleter> FilePtr;
|
typedef std::unique_ptr<std::FILE, FILEDeleter> FilePtr;
|
||||||
|
|
||||||
struct Range {
|
struct Range {
|
||||||
Range(std::size_t off, std::size_t len) : offset(off), length(len) {}
|
Range(std::size_t off, std::size_t len) : offset(off), length(len) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user