[php-src] PR #17179: Fix GH-17107: Building ext/intl fails with GCC 8.5.0

From: Date: Mon, 16 Dec 2024 16:55:53 +0000
Subject: [php-src] PR #17179: Fix GH-17107: Building ext/intl fails with GCC 8.5.0
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30030@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17179 Author: cmb69 A previous fix to be able to build C++ extensions with MSVC[1], was based on two assumptions: * max_align_t would be defined in stddef.h on Windows * additionally including cstddef as extern C++ would not interfere with the already included stddef.h The former was plain wrong; there is no such typedef (or macro); the latter was presumptuous, as can be seen in the bug tracker ticket. Thus we revert that fix, and instead make an exception for Windows, where we always use the fallback definition, which should work fine on Windows. [1] <https://github.com/php/php-src/commit/ab449a7e466570f5700ff91548d2154e9c447a8e> --- I'm filing this as draft, since I don't think we can apply this to PHP-8.4 since it might constitute an ABI break (the obvious API break that cstddef is no longer included might not be that much of an issue).

« previous php.git-pulls (#30030) next »