fix(linux): keep the mpv node builder clear of X11's Bool macro
The Linux native reliability job stopped compiling mpv_player.cc: the node-conversion builder exposed a leaf named `Bool`, and X11's Xlib.h — reached through epoxy/egl.h -> EGL/eglplatform.h — defines `Bool` as a macro for `int`, so the declaration was rewritten into nonsense. Renames that leaf to `Boolean` across the shared walk and all three builders. The name is the only thing that changes; no conversion behaviour differs.
This commit is contained in:
@@ -33,7 +33,7 @@ struct EncodableNodeBuilder {
|
||||
using MapBuilder = flutter::EncodableMap;
|
||||
|
||||
static Value Null() { return flutter::EncodableValue(); }
|
||||
static Value Bool(bool value) { return flutter::EncodableValue(value); }
|
||||
static Value Boolean(bool value) { return flutter::EncodableValue(value); }
|
||||
static Value Int(int64_t value) { return flutter::EncodableValue(value); }
|
||||
static Value Double(double value) { return flutter::EncodableValue(value); }
|
||||
static Value String(const char* value, size_t length) { return flutter::EncodableValue(SanitizeUtf8(value, length)); }
|
||||
|
||||
Reference in New Issue
Block a user