yoga: include missing header

when building without exceptions, yoga will std::terminate, but it fails
to include the required header.

Pick-to: 6.10 6.10.0
Change-Id: Ia808898d07d08b9d81184696068bbda65ba330d2
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
This commit is contained in:
Tim Blechmann 2025-09-20 13:22:49 +08:00
parent e9f1f80dc9
commit 5486f0acb6
2 changed files with 27 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include "Utils.h"
#include <stdexcept>
#include <exception>
QT_YOGA_NAMESPACE_BEGIN

View File

@ -0,0 +1,26 @@
From fd9d4c71371807f5ac293b6ba3343fee78bb7377 Mon Sep 17 00:00:00 2001
From: Tim Blechmann <tim.blechmann@qt.io>
Date: Sat, 20 Sep 2025 13:22:49 +0800
Subject: [PATCH] yoga: include missing header
when building without exceptions, yoga will std::terminate, but it fails
to include the required header.
---
src/3rdparty/yoga/Utils.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/3rdparty/yoga/Utils.cpp b/src/3rdparty/yoga/Utils.cpp
index 7766c36d4d..4346a0e596 100644
--- a/src/3rdparty/yoga/Utils.cpp
+++ b/src/3rdparty/yoga/Utils.cpp
@@ -5,6 +5,7 @@
#include "Utils.h"
#include <stdexcept>
+#include <exception>
QT_YOGA_NAMESPACE_BEGIN
--
2.51.0