Project

General

Profile

Bug #336

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

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


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 View (931 Bytes) pavlin, 10/01/2006 06:19 AM

History

#1 Updated by victor about 10 years ago

Committed, thanks.

Also available in: Atom PDF