diff options
author | David Robillard <d@drobilla.net> | 2019-03-18 14:31:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | 1e299f9f1f9cd621d98a1bae86047a28de9c24f6 (patch) | |
tree | b3473697e07c92c96a49ea247e0e0900add1883e /src | |
parent | 1db298c135f037513304c090b4634046a064fe24 (diff) | |
download | serd-1e299f9f1f9cd621d98a1bae86047a28de9c24f6.tar.gz serd-1e299f9f1f9cd621d98a1bae86047a28de9c24f6.tar.bz2 serd-1e299f9f1f9cd621d98a1bae86047a28de9c24f6.zip |
Avoid absurd Windows warnings about "deprecated" POSIX functions
Diffstat (limited to 'src')
-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 384fc1c7..b4ee19ef 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -179,8 +179,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++]; |