php-src/TSRM
Peter Kokot a82d86479c
Replace WIN32 conditions with _WIN32 or PHP_WIN32 (#14462)
* Replace WIN32 conditions with _WIN32 or PHP_WIN32

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
c60d9fe577

PHP_WIN32 is added to ext/sockets/sockets.stub.php as done in other
*.stub.php files at this point.

* Use PHP_WIN32 in ext/random

* Use PHP_WIN32 in ext/sockets

* Use _WIN32 in xxhash.h as done upstream

See https://github.com/Cyan4973/xxHash/pull/931

* Update end comment with PHP_WIN32
2024-06-10 21:59:41 +02:00
..
config.w32 Remove unused tsrm_strtok_r() function 2019-07-12 13:14:24 +02:00
LICENSE
threads.m4 Sync logical operators in shell scripting code (#13560) 2024-03-01 20:40:16 +01:00
tsrm_win32.c Merge branch 'PHP-8.1' into PHP-8.2 2023-02-07 13:38:39 +03:00
tsrm_win32.h Join shm_pair.info and .segment of Windows shm implementation 2022-06-10 17:18:27 +02:00
TSRM.c Fix GH-11188: Error when building TSRM in ARM64 (for IR JIT) (#14459) 2024-06-04 19:47:07 +02:00
TSRM.h Replace WIN32 conditions with _WIN32 or PHP_WIN32 (#14462) 2024-06-10 21:59:41 +02:00
tsrm.m4 Merge branch 'PHP-7.4' 2019-07-01 13:26:17 +02:00