Bug #336
/usr/include/machine/atomic.h is not C++ safe
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
Header file /usr/include/machine/atomic.h
(src/sys/i386/include/atomic.h in the source tree) is not C++ safe,
because it contains a variable named "new" which is a C++ keyword.
This file is indirectly included by header files like
<netinet/if_ether.h> therefore such files cannot be used by a C++
program.
The simple patch included below shows the location of the
problematic variable.
Thanks,
Pavlin
P.S. I am not on the mailing list, hence please CC me in your
replies.
Related todos
History
Updated by victor over 6 years ago
Committed, thanks.