mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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
This commit is contained in:
parent
bcecbb59d3
commit
a82d86479c
11 changed files with 62 additions and 62 deletions
|
@ -43,7 +43,7 @@
|
|||
#define SIZE_MAX ((size_t)~0)
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#ifdef MBFL_DLL_EXPORT
|
||||
#define MBFLAPI __declspec(dllexport)
|
||||
#else
|
||||
|
@ -55,6 +55,6 @@
|
|||
#else
|
||||
#define MBFLAPI
|
||||
#endif /* defined(__GNUC__) && __GNUC__ >= 4 */
|
||||
#endif /* WIN32 */
|
||||
#endif /* _WIN32 */
|
||||
|
||||
#endif /* MBFL_DEFS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue