Repository navigation
Commit 01d86ef
Remove the bundled gcc stdatomic compatibility header (ros2#589)
This header is a copy of the FreeBSD stdatomic.h, added so that rcutils
could build on compilers that predated a working <stdatomic.h>. Its own
banner records the intent: "so that it will work with gcc 4.7+ and Clang
3.1+".
The include guards select it only for GCC 4.9 and older, or for Clang that
does not report the c_atomic feature, which means Clang older than 3.1.
Neither has been a supported platform for years, so on every compiler
Rolling targets these branches are dead and <stdatomic.h> is used already.
Dropping it removes 400 lines of vendored code and collapses the include
selection to a single choice between the native header and the win32 shim.
The win32 shim is untouched, and is still required: MSVC 14.51 provides
<stdatomic.h> but refuses to compile it without /experimental:c11atomics.
Verified both remaining paths build clean at /W4 /WX with MSVC 14.51, the
native one by forcing the non-Windows branch.
Signed-off-by: Michael Carroll <mjcarroll.oss@gmail.com>1 parent 4e1f3fa commit 01d86ef
2 files changed
Lines changed: 8 additions & 423 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
45 | 36 | | |
46 | | - | |
| 37 | + | |
47 | 38 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
57 | 42 | | |
58 | 43 | | |
59 | 44 | | |
| |||
0 commit comments