Commit 1048ed6
Replace deprecated OSAtomicIncrement/Decrement32 in callback.c for macOS
Instead use the methods from stdatomic.h introduced in the C11 standard:
- https://en.cppreference.com/w/c/atomic/atomic_fetch_add
- https://en.cppreference.com/w/c/atomic/atomic_fetch_sub
- https://en.cppreference.com/w/c/language/atomic.html
- https://en.cppreference.com/w/c/atomic/memory_order
Contributes to
- #3186
Co-authored-by: HannesWell <wellmann.hannes1@gmx.net>1 parent 596bef6 commit 1048ed6
File tree
1 file changed
+7
-3
lines changed- bundles/org.eclipse.swt/Eclipse SWT/common/library
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments