Files
libmetal/libmetal-gcc15.patch
Guillaume GARDET 0f0e67c0ed - version update to 2025.04.0
* fixes issue to improve the library maturity
  * Update the cmake minimum support to 3.16
  * lot more https://github.com/OpenAMP/libmetal/releases
- added patches
  dcf121ab61
  + libmetal-gcc15.patch

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/libmetal?expand=0&rev=7
2025-07-01 08:39:12 +00:00

15 lines
393 B
Diff

diff --git a/lib/atomic.h b/lib/atomic.h
index d49f1337..7f38a08c 100644
--- a/lib/atomic.h
+++ b/lib/atomic.h
@@ -114,4 +114,8 @@ using std::atomic_signal_fence;
#endif /* defined(HAVE_PROCESSOR_ATOMIC_H) */
#endif
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L && !defined(ATOMIC_VAR_INIT)
+# define ATOMIC_VAR_INIT(VAL) (VAL)
+#endif
+
#endif /* __METAL_ATOMIC__H__ */