SHA256
1
0
forked from pool/audacity
audacity/vst3sdk-fix-std-atomic-for-gcc12.patch
Dave Plater a671efefc2 Accepting request 1094729 from home:kill_it:daw
- Update to 3.3.3
- Downgrade vst3stk to 3.7.3_build_20 as most compatible with audacity
- Rework vst3sdk patches vst3sdk-3.7.3_build_20:
  remove vst3sdk-fix-include-cstdint-for-gcc13.patch,
         vst3sdk-fix-limits-include-moduleinfoparser.patch
  add vst3sdk-fix-std-atomic-for-gcc12.patch,
      vst3sdk-fix-include-cstdint.patch
- Add vst-system-path.patch changes vst(3) search path to /usr/lib64
  This is a hotfix release. It fixes the following bugs:
  
  * #4618 Fixed EQ not scaling properly when resizing the window.
  * #4743 Fixed the audio.com upload flow.

OBS-URL: https://build.opensuse.org/request/show/1094729
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=206
2023-06-23 05:51:33 +00:00

24 lines
1.1 KiB
Diff

diff -ur vst3sdk-3.7.4_build_25.orig/pluginterfaces/base/funknown.cpp vst3sdk-3.7.4_build_25/pluginterfaces/base/funknown.cpp
--- vst3sdk-3.7.4_build_25.orig/pluginterfaces/base/funknown.cpp 2022-01-18 10:42:29.305860504 +1000
+++ vst3sdk-3.7.4_build_25/pluginterfaces/base/funknown.cpp 2022-05-17 10:22:42.306950103 +1000
@@ -88,7 +88,7 @@
int32 PLUGIN_API atomicAdd (int32& var, int32 d)
{
#if SMTG_USE_STDATOMIC_H
- return atomic_fetch_add (reinterpret_cast<atomic_int_least32_t*> (&var), d) + d;
+ return std::atomic_fetch_add (reinterpret_cast<std::atomic_int_least32_t*> (&var), d) + d;
#else
#if SMTG_OS_WINDOWS
#ifdef __MINGW32__
diff -ur vst3sdk-3.7.4_build_25.orig/pluginterfaces/base/funknown.h vst3sdk-3.7.4_build_25/pluginterfaces/base/funknown.h
--- vst3sdk-3.7.4_build_25.orig/pluginterfaces/base/funknown.h 2022-01-18 10:42:29.305860504 +1000
+++ vst3sdk-3.7.4_build_25/pluginterfaces/base/funknown.h 2022-05-17 10:22:52.071191240 +1000
@@ -20,6 +20,7 @@
#include "pluginterfaces/base/ftypes.h"
#include "pluginterfaces/base/smartpointer.h"
#include <cstring>
+#include <atomic>
#if SMTG_CPP11_STDLIBSUPPORT
#include <type_traits>