Bug #336

/usr/include/machine/atomic.h is not C++ safe

Added by pavlin about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:
Priority:NormalDue 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.

atomic.h.patch Magnifier (931 Bytes) pavlin, 10/01/2006 06:19 AM

History

#1 Updated by victor about 8 years ago

Committed, thanks.

Also available in: Atom PDF