[php-src] PR #14462: Replace WIN32 conditions with _WIN32 or PHP_WIN32
| From: | petk | Date: | Mon, 03 Jun 2024 21:15:50 +0000 |
| Subject: | [php-src] PR #14462: Replace WIN32 conditions with _WIN32 or PHP_WIN32 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26526@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14462
Author: petk
WIN32 is defined by the SDK and not defined all the time on Windows by compilers or the environment.
_WIN32 is defined as 1 when the compilation target is 32-bit ARM, 64-bit ARM, x86, or x64.
Otherwise, undefined.
This syncs these usages one step further.
Upstream libgd has replaced WIN32 with _WIN32 via
https://github.com/libgd/libgd/commit/c60d9fe577ae8dad88e26344c4ceaa90da86e2f6
PHP_WIN32 is added to ext/sockets/sockets.stub.php as done in other *.stub.php files at this point.