From: <ped...@us...> - 2007-09-02 23:10:00
|
Revision: 1054 http://cegcc.svn.sourceforge.net/cegcc/?rev=1054&view=rev Author: pedroalves Date: 2007-09-02 16:09:49 -0700 (Sun, 02 Sep 2007) Log Message: ----------- * include/stdio.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Define as fileno(stdin), fileno(stdout) and fileno(stderr). Modified Paths: -------------- trunk/cegcc/src/mingw/include/stdio.h Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2007-09-02 23:05:55 UTC (rev 1053) +++ trunk/cegcc/src/mingw/include/stdio.h 2007-09-02 23:09:49 UTC (rev 1054) @@ -45,9 +45,15 @@ * The three standard file pointers provided by the run time library. * NOTE: These will go to the bit-bucket silently in GUI applications! */ +#ifndef __COREDLL__ #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 +#else +#define STDIN_FILENO fileno(stdin) +#define STDOUT_FILENO fileno(stdout) +#define STDERR_FILENO fileno(stderr) +#endif /* Returned by various functions on end of file condition or error. */ #define EOF (-1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |