Actions
Bug #336
closed/usr/include/machine/atomic.h is not C++ safe
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
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.
Files
Actions