File: nsync_1.26.0.patch

package info (click to toggle)
onnxruntime 1.21.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 333,732 kB
  • sloc: cpp: 3,153,079; python: 179,219; ansic: 109,131; asm: 37,791; cs: 34,424; perl: 13,070; java: 11,047; javascript: 6,330; pascal: 4,126; sh: 3,277; xml: 598; objc: 281; makefile: 59
file content (14 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/public/nsync_atomic.h b/public/nsync_atomic.h
index aebe4f7..466a262 100644
--- a/public/nsync_atomic.h
+++ b/public/nsync_atomic.h
@@ -45,7 +45,8 @@ NSYNC_CPP_END_
 NSYNC_CPP_START_
 typedef std::atomic<uint32_t> nsync_atomic_uint32_;
 NSYNC_CPP_END_
-#define NSYNC_ATOMIC_UINT32_INIT_ ATOMIC_VAR_INIT (0)
+// Replace deprecated ATOMIC_VAR_INIT with std::atomic<uint32_t> brace initialization
+#define NSYNC_ATOMIC_UINT32_INIT_ { 0 }
 #define NSYNC_ATOMIC_UINT32_LOAD_(p) (std::atomic_load (p))
 #define NSYNC_ATOMIC_UINT32_STORE_(p,v) (std::atomic_store ((p), (uint32_t) (v)))
 #define NSYNC_ATOMIC_UINT32_PTR_(p) (p)