Skip to content

Commit

Permalink
fix: windowsビルドエラー修正
Browse files Browse the repository at this point in the history
std::optional未定義エラー修正
Signed-off-by: Zenichi Amano <crow.misia@gmail.com>
  • Loading branch information
crow-misia committed Feb 5, 2025
1 parent 00211ef commit 9f81e13
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions patch/windows_fix_optional.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,23 @@
#include <string>
#include <vector>

--- a/third_party/perfetto/include/perfetto/tracing/track.h
+++ b/third_party/perfetto/include/perfetto/tracing/track.h
@@ -33,6 +33,7 @@
#include <stdint.h>
#include <map>
#include <mutex>
+#include <optional>

namespace perfetto {
namespace internal {
--- a/third_party/perfetto/include/perfetto/tracing/internal/track_event_internal.h
+++ b/third_party/perfetto/include/perfetto/tracing/internal/track_event_internal.h
@@ -29,6 +29,7 @@
#include "protos/perfetto/trace/interned_data/interned_data.pbzero.h"
#include "protos/perfetto/trace/track_event/track_event.pbzero.h"

+#include <optional>
#include <unordered_map>

namespace perfetto {

0 comments on commit 9f81e13

Please sign in to comment.