diff options
author | David Robillard <d@drobilla.net> | 2019-03-18 14:31:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-20 10:26:55 -0500 |
commit | 7efe089be0ea0c130c7c12d598adda990b581053 (patch) | |
tree | cf921fb59fc2a7d21b45b494f37b65abc52a307c | |
parent | b1820211b9574fe33473553027d9e33a88f19ac1 (diff) | |
download | serd-7efe089be0ea0c130c7c12d598adda990b581053.tar.gz serd-7efe089be0ea0c130c7c12d598adda990b581053.tar.bz2 serd-7efe089be0ea0c130c7c12d598adda990b581053.zip |
Avoid absurd Windows warnings about "deprecated" POSIX functions
-rw-r--r-- | src/serdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c index b7586aa7..826ecaa4 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -188,8 +188,8 @@ main(int argc, char** argv) } #ifdef _WIN32 - _setmode(fileno(stdin), _O_BINARY); - _setmode(fileno(stdout), _O_BINARY); + _setmode(_fileno(stdin), _O_BINARY); + _setmode(_fileno(stdout), _O_BINARY); #endif const char* input = (const char*)argv[a++]; |