[vlc-devel] GCC 4.8 and max_align_t
remi at remlab.net
Thu Sep 15 18:22:11 CEST 2016
Le torstaina 15. syyskuuta 2016, 6.57.10 EEST Sean McGovern a écrit :
> It looks like max_align_t is already defined by GCC 4.8 in a
> compiler-specific copy of stddef.h (somewhere under something like
> /usr/lib/<triplet>/gcc/4.8/include on my Ubuntu 14.04 machine). Is there a
> way we can account for this issue in compat/ somehow?
If the C compiler has max_align_t in stddef.h, there is no problem (that´s
what happens with GCC 4.9, 5 and 6): vlc_fixups.h will not (re)define
max_align_t. So I don´t understand your problem.
Also, this has been discussed several times since C++11 was introduced: do not
mix C99 and C++11 (or C11 and C++98). You need matching versions of C and C++
languages when compiling.
Nonsponsored VLC developer
More information about the vlc-devel