[vlc-devel] [PATCH] demux: adaptative: fix compilation
remi at remlab.net
Wed Jul 29 10:44:53 CEST 2015
Le 2015-07-27 19:29, Filipe Cabecinhas a écrit :
> I tried searching on the site, and repo, but couldn’t find anything.
> What’s the minimum C++ language standard VLC requires, if C++ is
> available (I see VLC requires C99 *on UNIX*, but haven’t even found
> that for other systems)?
VLC uses anonymous unions and atomic operations which are not found in
C99. So strictly speaking, VLC requires C11 with the following
- hosted implementation,
- atomics support,
- VLAs support,
- POSIX-sized int (i.e. at least 32-bits).
...on top of my head. The list is non-exhaustive.
Regardless, typical C99 compilers will work through non-standard
extensions. On the other hand, VLC cannot be compiled in a pure ISO C
environment. It requires POSIX or Win32 API.
Not sure what the status is for C++.
More information about the vlc-devel