[vlc-devel] [PATCH] Added check for _Static_assert and C++11 static_assert.

Rémi Denis-Courmont remi at remlab.net
Wed Nov 27 10:40:38 CET 2013

On Wed, 27 Nov 2013 10:38:41 +0100, "Steinar H. Gunderson"
<sgunderson at bigfoot.com> wrote:
> On Wed, Nov 27, 2013 at 10:35:30AM +0100, Rémi Denis-Courmont wrote:
>>> Apple's SDK misses static_assert for C standard library but defines it
>>> for
>>> C++ standard library in the same time.
>> However autoconf will hardly deal with inconsistencies in the
>> such as between C and C++. You just have to use compatible C and C++
>> compilers in a given VLC build. In general, I do not think that a
>> toolchain
>> bug can (nor should) be fixed with autoconf.
> I'm not sure if this is really “incompatible”, though? It's perfectly
> to support C++11 but only C99.

It is fine if you write pure C++11 code. VLC is mixed C/C++, using
<assert.h> in C++ code. Hence they have to be consistent.

Rémi Denis-Courmont
Sent from my collocated server

More information about the vlc-devel mailing list