gcc 8.2.0: missing _fileno() for c++11

Anton Shepelev <[email protected]> Mon, 20 Jan 2020 02:15:15 +0300
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
Hello, all

After an upgrade to 8.2.0, gcc can no longer find the
_fileno function.  The following program:

#include <stdio.h>

int main( void )
{  FILE *f;
   _fileno( f );
   return 0;
}

saved in test.cpp, will not compile with:

    gcc -std=c++11 test.cpp

but compiles with:

    gcc test.cpp

This function is (conditinally?) defined in:

    [mingw]\include\stdio.h

What may be the problem with c++11?

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe