Skip to content

Error in stdatomic_helper.h while compiling with gcc version > 5 #13

@firesurfer

Description

@firesurfer

I get the following error while compiling ROS2 with gcc (Debian 5.3.1-4) 5.3.1 20151219

error: missing binary operator before token "("
 #elif defined(__clang__) && defined(__has_feature) && !__has_feature(c_atomic)

It compiles when I change line 23 in stdatomic_helper.h from

#elif defined(__clang__) && defined(__has_feature) && !__has_feature(c_atomic)

to

#elif defined(__clang__) && defined(__has_feature) 

on my server with gcc (Debian 4.9.2-10) 4.9.2 it compiles without any errors.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions