Re: Thoughts on C version supported for PHP-Next
| From: | Matt Wilmas | Date: | Wed, 08 Jul 2015 15:00:40 +0000 |
| Subject: | Re: Thoughts on C version supported for PHP-Next | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87073@lists.php.net to get a copy of this message | ||
Hi all,
----- Original Message -----
From: "Levi Morrison"
Sent: Sunday, May 10, 2015
What's the status on compiler requirements? Are they, or will they be, higher? I'm going to take advantage of variadic macros (__VA_ARGS__) for better code generation with the parameter parsing implementation I'm finishing up, and it would be nice to not have to make two versions with a compiler check. e.g. for MSVC or GCC >= 3, but I don't know what else... Thanks, MattAgain, this is a C11 feature. It is supported by clang, gcc and MSVC.To clarify this a bit: they permit anonymous unions in C89 and C99 code (meaning you do not need to pass flags like -std=c11 to enable it).