fix 8266 builds, add missing guards (#22924)

This commit is contained in:
Christian Baars 2025-02-03 11:23:11 +01:00 committed by GitHub
parent def7ede895
commit aaa49f84ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 14 additions and 1 deletions

View File

@ -7,6 +7,7 @@
// be found in the AUTHORS file in the root of the source tree.
#include "mkvmuxer.h"
#ifdef ESP32
#include <stdint.h>
@ -4202,3 +4203,5 @@ bool Segment::DocTypeIsWebm() const {
}
} // namespace mkvmuxer
#endif //ESP32

View File

@ -8,6 +8,7 @@
#ifndef MKVMUXER_MKVMUXER_H_
#define MKVMUXER_MKVMUXER_H_
#ifdef ESP32
#include <stdint.h>
@ -1921,4 +1922,5 @@ class Segment {
} // namespace mkvmuxer
#endif // ESP32
#endif // MKVMUXER_MKVMUXER_H_

View File

@ -7,6 +7,7 @@
// be found in the AUTHORS file in the root of the source tree.
#include "mkvmuxerutil.h"
#ifdef ESP32
#ifdef __ANDROID__
#include <fcntl.h>
@ -735,3 +736,4 @@ bool IsPrimariesValueValid(uint64_t value) {
}
} // namespace mkvmuxer
#endif // ESP32

View File

@ -7,6 +7,7 @@
// be found in the AUTHORS file in the root of the source tree.
#ifndef MKVMUXER_MKVMUXERUTIL_H_
#define MKVMUXER_MKVMUXERUTIL_H_
#ifdef ESP32
#include <stdint.h>
@ -112,4 +113,5 @@ bool IsPrimariesValueValid(uint64_t value);
} // namespace mkvmuxer
#endif // ESP32
#endif // MKVMUXER_MKVMUXERUTIL_H_

View File

@ -7,6 +7,7 @@
// be found in the AUTHORS file in the root of the source tree.
#include "mkvwriter.h"
#ifdef ESP32
#include <sys/types.h>
@ -97,3 +98,4 @@ bool MkvWriter::Seekable() const {
void MkvWriter::ElementStartNotify(uint64, int64) {}
} // namespace mkvmuxer
#endif // ESP32

View File

@ -9,9 +9,10 @@
#ifndef MKVMUXER_MKVWRITER_H_
#define MKVMUXER_MKVWRITER_H_
#ifdef ESP32
#include <stdio.h>
#include "Fs.h"
#include "Fs.h"
#include "mkvmuxer.h"
#include "mkvmuxertypes.h"
@ -55,4 +56,5 @@ class MkvWriter : public IMkvWriter {
} // namespace mkvmuxer
#endif // ESP32
#endif // MKVMUXER_MKVWRITER_H_