svn commit: r292809 - head/lib/libc/stdio

David Chisnall theraven at FreeBSD.org
Wed Dec 30 05:56:22 UTC 2015


On 30 Dec 2015, at 00:48, Bruce Evans <brde at optusnet.com.au> wrote:
> 
> - C++ apparently spells this as both _Alignof() and alignof() after 2011/03

This is not correct.  C++ spells it alignof.  C spells it _Alignof, unless you include <stdalign.h>, in which case C spells it alignof and defines _ _alignof_is_defined.

On FreeBSD, we define _Alignof in C++ mode, because it’s in the reserved identifier space and gives us something that works in C and C++.

David



More information about the svn-src-head mailing list