File JUCE7-SIMD-Add-guard-for-string-stream-operator.patch of Package JUCE7_06

From f893a125b98bbaaa126ef8cc86f1ff0c952f0dce Mon Sep 17 00:00:00 2001
From: Anthony Nicholls <anthony@juce.com>
Date: Mon, 2 Oct 2023 15:15:38 +0100
Subject: [PATCH] SIMD: Add guard for string stream operator

---
 modules/juce_dsp/containers/juce_AudioBlock_test.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/juce_dsp/containers/juce_AudioBlock_test.cpp b/modules/juce_dsp/containers/juce_AudioBlock_test.cpp
index bfd2f8aa486a..4b091bf34b2f 100644
--- a/modules/juce_dsp/containers/juce_AudioBlock_test.cpp
+++ b/modules/juce_dsp/containers/juce_AudioBlock_test.cpp
@@ -28,8 +28,10 @@ namespace juce
 namespace dsp
 {
 
+#if JUCE_USE_SIMD
 template <typename SampleType>
 String& operator<< (String& str, SIMDRegister<SampleType>) { return str; }
+#endif
 
 template <typename SampleType>
 class AudioBlockUnitTests   : public UnitTest
openSUSE Build Service is sponsored by