From 31fb42796f0adb6dc5e7b2f84539b734e7a2262e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Aug 2020 16:27:06 +0200 Subject: Avoid absurd Windows warnings about "deprecated" POSIX functions --- src/serdi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/serdi.c b/src/serdi.c index 604a54fa..ec961f5c 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -233,8 +233,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 uint8_t* input = (const uint8_t*)argv[a++]; -- cgit v1.2.1