Project

General

Profile

Actions

Bug #336

closed

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

Added by pavlin over 17 years ago. Updated over 17 years ago.

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

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

Updated by victor over 17 years ago

Committed, thanks.

Actions

Also available in: Atom PDF