juce/projucer: Backport a fix for the compilation under recent GCC

This backport fixes this error:
  note: 'std::exchange' is defined in header '<utility>'; did you forget to '#include <utility>'?

Note: The fix is on version >= 7.0.0

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yoann Congal 2023-11-15 15:35:19 +01:00 committed by Khem Raj
parent 96831e8b3f
commit 7fb028ebf0
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 25 additions and 1 deletions

View File

@ -18,7 +18,8 @@ DEPENDS:append:libc-musl = " libexecinfo"
SRCREV = "2f980209cc4091a4490bb1bafc5d530f16834e58"
BRANCH = "master"
SRC_URI = "git://github.com/WeAreROLI/JUCE.git;protocol=https;branch=${BRANCH} \
"
file://0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch \
"
S = "${WORKDIR}/git"
PV = "6.1.6"

View File

@ -0,0 +1,23 @@
From 85822fcb87dd531d5e8ed1c8230c67bddb56f66d Mon Sep 17 00:00:00 2001
From: reuk <reuk@users.noreply.github.com>
Date: Wed, 6 Apr 2022 15:43:09 +0100
Subject: [PATCH] StandardHeader: Include <utility> for GCC 12 compatibility
Upstream-Status: Backport [https://github.com/juce-framework/JUCE/commit/ce8aff22c31c4d932a8414bc6f6185381dc970db]
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
modules/juce_core/system/juce_StandardHeader.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/juce_core/system/juce_StandardHeader.h b/modules/juce_core/system/juce_StandardHeader.h
index fe164cdd3..cda6bbe86 100644
--- a/modules/juce_core/system/juce_StandardHeader.h
+++ b/modules/juce_core/system/juce_StandardHeader.h
@@ -64,6 +64,7 @@
#include <typeindex>
#include <unordered_map>
#include <unordered_set>
+#include <utility>
#include <vector>
#include <set>