tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

typedef int wchar_t;

I'm making wip/icc11 (Intel C++ compiler 11.1) package for NetBSD and I've run 
into a problem. The C++ compiler fails on

typedef int wchar_t;

line because wchar_t is C++ builtin type and it can't be redefined. On all 
other BSDs this line is guarded by #ifndef __cplusplus.
(dragonflybsd site is currently unvailable)

Is there any reason why there is no __cplusplus guard on NetBSD?

PS the C compiler works fine, I built (with few hacks, though) and ran 
x11/modular-xorg-server with x11/xf86-video-intel driver and wm/ratpoison.


Home | Main Index | Thread Index | Old Index