mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Change calls to setmode to _setmode (#14220)
setmode is the deprecated alias of _setmode [1]. [1] https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/posix-setmode?view=msvc-170
This commit is contained in:
parent
173f51365d
commit
a95d001a8a
4 changed files with 12 additions and 12 deletions
|
@ -1240,9 +1240,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
#ifdef PHP_WIN32
|
||||
_fmode = _O_BINARY; /*sets default for file streams to binary */
|
||||
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||
setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
||||
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
||||
_setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||
_setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
||||
_setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
||||
#endif
|
||||
|
||||
php_ini_builder_init(&ini_builder);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue